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 | 7f198507f724a20bc2c1257ad385a1fa4983a08e (patch) | |
tree | 4de4c102c811abe4c55218244a0c848367082bf0 /src/train_cmd.cpp | |
parent | 6dff31d34b2df4c1fb1332d33380bb99a2b40924 (diff) | |
download | openttd-7f198507f724a20bc2c1257ad385a1fa4983a08e.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, |