diff options
author | peter1138 <peter1138@openttd.org> | 2017-04-23 09:19:32 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2017-04-23 09:19:32 +0000 |
commit | c973f65acb31a3b966f4270a72ae8a5d0b970e5b (patch) | |
tree | b84e39854ea15055f656af03f55cf346950f83ba /src/ship_cmd.cpp | |
parent | 3c3693583d0ab2a19cb74d7413fbddd78cadcece (diff) | |
download | openttd-c973f65acb31a3b966f4270a72ae8a5d0b970e5b.tar.xz |
(svn r27858) -Change [FS#6560]: Add missing game script event for ships arriving at a station. (juanjo)
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index de1bf4f8c..771863a24 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -28,6 +28,7 @@ #include "vehicle_func.h" #include "sound_func.h" #include "ai/ai.hpp" +#include "game/game.hpp" #include "pathfinder/opf/opf_ship.h" #include "engine_base.h" #include "company_base.h" @@ -421,6 +422,7 @@ static void ShipArrivesAt(const Vehicle *v, Station *st) st->index ); AI::NewEvent(v->owner, new ScriptEventStationFirstVehicle(st->index, v->index)); + Game::NewEvent(new ScriptEventStationFirstVehicle(st->index, v->index)); } } |