summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-02-05 17:28:37 +0000
committerfrosch <frosch@openttd.org>2009-02-05 17:28:37 +0000
commit7f198507f724a20bc2c1257ad385a1fa4983a08e (patch)
tree4de4c102c811abe4c55218244a0c848367082bf0 /src/roadveh_cmd.cpp
parent6dff31d34b2df4c1fb1332d33380bb99a2b40924 (diff)
downloadopenttd-7f198507f724a20bc2c1257ad385a1fa4983a08e.tar.xz
(svn r15358) -Add [NoAI]: AIEventVehicleCrashed::GetCrashReason()
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index f6b54934c..05c842f54 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -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(