summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-11-29 23:15:35 +0000
committertruebrain <truebrain@openttd.org>2011-11-29 23:15:35 +0000
commit98103121d4f2ed1f1581919b7b1f343ccd410c12 (patch)
tree1e760dd6517a6b0f9fb669ec277139a8e3f9a4a3 /src/roadveh_cmd.cpp
parentafdb67a3534f85b4efbd3327ece8137211042d7b (diff)
downloadopenttd-98103121d4f2ed1f1581919b7b1f343ccd410c12.tar.xz
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 0198dac82..334061381 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -520,7 +520,7 @@ static void RoadVehCrash(RoadVehicle *v)
{
uint pass = v->Crash();
- AI::NewEvent(v->owner, new AIEventVehicleCrashed(v->index, v->tile, AIEventVehicleCrashed::CRASH_RV_LEVEL_CROSSING));
+ AI::NewEvent(v->owner, new ScriptEventVehicleCrashed(v->index, v->tile, ScriptEventVehicleCrashed::CRASH_RV_LEVEL_CROSSING));
SetDParam(0, pass);
AddVehicleNewsItem(
@@ -668,7 +668,7 @@ static void RoadVehArrivesAt(const RoadVehicle *v, Station *st)
v->index,
st->index
);
- AI::NewEvent(v->owner, new AIEventStationFirstVehicle(st->index, v->index));
+ AI::NewEvent(v->owner, new ScriptEventStationFirstVehicle(st->index, v->index));
}
} else {
/* Check if station was ever visited before */
@@ -681,7 +681,7 @@ static void RoadVehArrivesAt(const RoadVehicle *v, Station *st)
v->index,
st->index
);
- AI::NewEvent(v->owner, new AIEventStationFirstVehicle(st->index, v->index));
+ AI::NewEvent(v->owner, new ScriptEventStationFirstVehicle(st->index, v->index));
}
}
}