diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:59:36 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:59:36 +0000 |
commit | 77b7366c2947a3f2545d5542021be1cc203a74e8 (patch) | |
tree | 5fac077be3e90460822aa50987f903fb8f86a7aa /src/disaster_cmd.cpp | |
parent | e7cd301d3c9990b4ef9f0748789bb5e0318c0d24 (diff) | |
download | openttd-77b7366c2947a3f2545d5542021be1cc203a74e8.tar.xz |
(svn r23622) -Add: a set of events to trigger in a GameScript
Diffstat (limited to 'src/disaster_cmd.cpp')
-rw-r--r-- | src/disaster_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp index a551d83a6..319113a0a 100644 --- a/src/disaster_cmd.cpp +++ b/src/disaster_cmd.cpp @@ -40,6 +40,7 @@ #include "effectvehicle_func.h" #include "roadveh.h" #include "ai/ai.hpp" +#include "game/game.hpp" #include "company_base.h" #include "core/random_func.hpp" #include "core/backup_type.hpp" @@ -358,6 +359,7 @@ static bool DisasterTick_Ufo(DisasterVehicle *v) u->index); // delete the news, when the roadvehicle is gone AI::NewEvent(u->owner, new ScriptEventVehicleCrashed(u->index, u->tile, ScriptEventVehicleCrashed::CRASH_RV_UFO)); + Game::NewEvent(new ScriptEventVehicleCrashed(u->index, u->tile, ScriptEventVehicleCrashed::CRASH_RV_UFO)); } } |