(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

@@ -600,7 +600,7 @@ static void RoadVehCrash(Vehicle *v)
InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
AI::NewEvent(v->owner, new AIEventVehicleCrashed(v->index, v->tile));
AI::NewEvent(v->owner, new AIEventVehicleCrashed(v->index, v->tile, AIEventVehicleCrashed::CRASH_RV_LEVEL_CROSSING));
SetDParam(0, pass);
AddNewsItem(