summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 21:01:03 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 21:01:03 +0000
commite0ffe4faf268298f3a20427cd87462c70e3d9bc2 (patch)
treeb2958b45d880e8ed5fe40f2a176652ef072ea5a6 /src/game
parentad48ab923764087bf66153d1c26ed0eb05a19989 (diff)
downloadopenttd-e0ffe4faf268298f3a20427cd87462c70e3d9bc2.tar.xz
(svn r23627) -Add: ScriptNews::Create, to create custom news messages (GameScript only)
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game_instance.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/game_instance.cpp b/src/game/game_instance.cpp
index 998788b61..438ccc019 100644
--- a/src/game/game_instance.cpp
+++ b/src/game/game_instance.cpp
@@ -53,6 +53,7 @@
#include "../script/api/game/game_log.hpp.sq"
#include "../script/api/game/game_map.hpp.sq"
#include "../script/api/game/game_marine.hpp.sq"
+#include "../script/api/game/game_news.hpp.sq"
#include "../script/api/game/game_rail.hpp.sq"
#include "../script/api/game/game_railtypelist.hpp.sq"
#include "../script/api/game/game_road.hpp.sq"
@@ -141,6 +142,7 @@ void GameInstance::RegisterAPI()
SQGSLog_Register(this->engine);
SQGSMap_Register(this->engine);
SQGSMarine_Register(this->engine);
+ SQGSNews_Register(this->engine);
SQGSRail_Register(this->engine);
SQGSRailTypeList_Register(this->engine);
SQGSRoad_Register(this->engine);