diff options
author | frosch <frosch@openttd.org> | 2009-02-05 17:28:37 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-02-05 17:28:37 +0000 |
commit | f6fa77d5f979d6e7da59ea0c1a4e0ae08041e045 (patch) | |
tree | 4de4c102c811abe4c55218244a0c848367082bf0 /src/train_cmd.cpp | |
parent | 801ff9c9cac474745eb5e30f93dfd22523791f67 (diff) | |
download | openttd-f6fa77d5f979d6e7da59ea0c1a4e0ae08041e045.tar.xz |
(svn r15358) -Add [NoAI]: AIEventVehicleCrashed::GetCrashReason()
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 0d1b69d47..6dbd49655 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3584,7 +3584,7 @@ static bool CheckTrainCollision(Vehicle *v) /* any dead -> no crash */ if (tcc.num == 0) return false; - AI::NewEvent(v->owner, new AIEventVehicleCrashed(v->index, v->tile)); + AI::NewEvent(v->owner, new AIEventVehicleCrashed(v->index, v->tile, AIEventVehicleCrashed::CRASH_TRAIN)); SetDParam(0, tcc.num); AddNewsItem(STR_8868_TRAIN_CRASH_DIE_IN_FIREBALL, NS_ACCIDENT_VEHICLE, |