diff options
author | alberth <alberth@openttd.org> | 2015-02-22 17:25:29 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2015-02-22 17:25:29 +0000 |
commit | 0143f486f29d1e72082bcb3ac6c1d16c695b09af (patch) | |
tree | 7d8a4e4f144a78a36a597cfd8770562b2e9017b9 /bin/game | |
parent | c639fb0d8eb0371a95c39027a986636f1ca8f764 (diff) | |
download | openttd-0143f486f29d1e72082bcb3ac6c1d16c695b09af.tar.xz |
(svn r27164) -Add: [NoGo] Game scripts can point to a location, station, industry, or town when publishing news.
Diffstat (limited to 'bin/game')
-rw-r--r-- | bin/game/compat_1.2.nut | 7 | ||||
-rw-r--r-- | bin/game/compat_1.3.nut | 7 | ||||
-rw-r--r-- | bin/game/compat_1.4.nut | 7 |
3 files changed, 21 insertions, 0 deletions
diff --git a/bin/game/compat_1.2.nut b/bin/game/compat_1.2.nut index 37ff5907d..aa5d48c3a 100644 --- a/bin/game/compat_1.2.nut +++ b/bin/game/compat_1.2.nut @@ -16,3 +16,10 @@ GSTown.SetGrowthRate <- function(town_id, days_between_town_growth) if (days_between_town_growth == 0) days_between_town_growth = GSTown.TOWN_GROWTH_NORMAL; return GSTown._SetGrowthRate(town_id, days_between_town_growth); } + +/* 1.5 adds a game element reference to the news. */ +GSNews._Create <- GSNews.Create; +GSNews.Create <- function(type, text, company) +{ + return GSNews._Create(type, text, company, GSNews.NR_NONE, 0); +} diff --git a/bin/game/compat_1.3.nut b/bin/game/compat_1.3.nut index 4116addbb..78a03534d 100644 --- a/bin/game/compat_1.3.nut +++ b/bin/game/compat_1.3.nut @@ -16,3 +16,10 @@ GSTown.SetGrowthRate <- function(town_id, days_between_town_growth) if (days_between_town_growth == 0) days_between_town_growth = GSTown.TOWN_GROWTH_NORMAL; return GSTown._SetGrowthRate(town_id, days_between_town_growth); } + +/* 1.5 adds a game element reference to the news. */ +GSNews._Create <- GSNews.Create; +GSNews.Create <- function(type, text, company) +{ + return GSNews._Create(type, text, company, GSNews.NR_NONE, 0); +} diff --git a/bin/game/compat_1.4.nut b/bin/game/compat_1.4.nut index 969c1e865..a00431ed6 100644 --- a/bin/game/compat_1.4.nut +++ b/bin/game/compat_1.4.nut @@ -8,3 +8,10 @@ */ GSLog.Info("1.4 API compatibility in effect."); + +/* 1.5 adds a game element reference to the news. */ +GSNews._Create <- GSNews.Create; +GSNews.Create <- function(type, text, company) +{ + return GSNews._Create(type, text, company, GSNews.NR_NONE, 0); +} |