summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2012-07-15 17:11:14 +0000
committeralberth <alberth@openttd.org>2012-07-15 17:11:14 +0000
commiteb56e5c0b185eb33cbf62c1344f90500badae354 (patch)
treedff20fb8ea6342a6e6cb563071470a21c90bf4d0 /src/game
parent05aaf18d38044eb52ea046c189469f4af440dc4b (diff)
downloadopenttd-eb56e5c0b185eb33cbf62c1344f90500badae354.tar.xz
(svn r24406) -Feature: Allow game scripts to monitor cargo pickups and deliveries done by companies.
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 66905912c..120491715 100644
--- a/src/game/game_instance.cpp
+++ b/src/game/game_instance.cpp
@@ -33,6 +33,7 @@
#include "../script/api/game/game_bridgelist.hpp.sq"
#include "../script/api/game/game_cargo.hpp.sq"
#include "../script/api/game/game_cargolist.hpp.sq"
+#include "../script/api/game/game_cargomonitor.hpp.sq"
#include "../script/api/game/game_company.hpp.sq"
#include "../script/api/game/game_companymode.hpp.sq"
#include "../script/api/game/game_controller.hpp.sq"
@@ -113,6 +114,7 @@ void GameInstance::RegisterAPI()
SQGSCargoList_IndustryAccepting_Register(this->engine);
SQGSCargoList_IndustryProducing_Register(this->engine);
SQGSCargoList_StationAccepting_Register(this->engine);
+ SQGSCargoMonitor_Register(this->engine);
SQGSCompany_Register(this->engine);
SQGSCompanyMode_Register(this->engine);
SQGSDate_Register(this->engine);