summaryrefslogtreecommitdiff
path: root/bin/game/compat_1.2.nut
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2015-02-22 17:25:29 +0000
committeralberth <alberth@openttd.org>2015-02-22 17:25:29 +0000
commit0143f486f29d1e72082bcb3ac6c1d16c695b09af (patch)
tree7d8a4e4f144a78a36a597cfd8770562b2e9017b9 /bin/game/compat_1.2.nut
parentc639fb0d8eb0371a95c39027a986636f1ca8f764 (diff)
downloadopenttd-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/compat_1.2.nut')
-rw-r--r--bin/game/compat_1.2.nut7
1 files changed, 7 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);
+}