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/compat_1.4.nut | |
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/compat_1.4.nut')
-rw-r--r-- | bin/game/compat_1.4.nut | 7 |
1 files changed, 7 insertions, 0 deletions
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); +} |