(svn r15358) -Add [NoAI]: AIEventVehicleCrashed::GetCrashReason()

This commit is contained in:
frosch
2009-02-05 17:28:37 +00:00
parent 801ff9c9ca
commit f6fa77d5f9
6 changed files with 37 additions and 5 deletions

View File

@@ -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,