mirror of https://github.com/OpenTTD/OpenTTD
Fix be01c2cd2a: [Scripts] Broken ScriptGroup::SetName compat wrapper
parent
a577229e95
commit
b8348d7e17
|
@ -26,7 +26,7 @@ AICompany._SetPresidentName <- AICompany.SetPresidentName;
|
||||||
AICompany.SetPresidentName <- function(name) { return AICompany._SetPresidentName(AICompat14.Text(name)); }
|
AICompany.SetPresidentName <- function(name) { return AICompany._SetPresidentName(AICompat14.Text(name)); }
|
||||||
|
|
||||||
AIGroup._SetName <- AIGroup.SetName;
|
AIGroup._SetName <- AIGroup.SetName;
|
||||||
AIGroup.SetName <- function(name) { return AIGroup._SetName(AICompat14.Text(name)); }
|
AIGroup.SetName <- function(id, name) { return AIGroup._SetName(id, AICompat14.Text(name)); }
|
||||||
|
|
||||||
AISign._BuildSign <- AISign.BuildSign;
|
AISign._BuildSign <- AISign.BuildSign;
|
||||||
AISign.BuildSign <- function(id, name) { return AISign._BuildSign(id, AICompat14.Text(name)); }
|
AISign.BuildSign <- function(id, name) { return AISign._BuildSign(id, AICompat14.Text(name)); }
|
||||||
|
|
|
@ -38,7 +38,7 @@ GSGoal._QuestionClient <- GSGoal.QuestionClient;
|
||||||
GSGoal.QuestionClient <- function(id, target, is_client, question, type, buttons) { return GSGoal._QuestionClient(id, target, is_client, GSCompat14.Text(question), type, buttons); }
|
GSGoal.QuestionClient <- function(id, target, is_client, question, type, buttons) { return GSGoal._QuestionClient(id, target, is_client, GSCompat14.Text(question), type, buttons); }
|
||||||
|
|
||||||
GSGroup._SetName <- GSGroup.SetName;
|
GSGroup._SetName <- GSGroup.SetName;
|
||||||
GSGroup.SetName <- function(name) { return GSGroup._SetName(GSCompat14.Text(name)); }
|
GSGroup.SetName <- function(id, name) { return GSGroup._SetName(id, GSCompat14.Text(name)); }
|
||||||
|
|
||||||
GSIndustry._SetText <- GSIndustry.SetText;
|
GSIndustry._SetText <- GSIndustry.SetText;
|
||||||
GSIndustry.SetText <- function(id, text) { return GSIndustry._SetText(id, GSCompat14.Text(text)); }
|
GSIndustry.SetText <- function(id, text) { return GSIndustry._SetText(id, GSCompat14.Text(text)); }
|
||||||
|
|
Loading…
Reference in New Issue