(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user