From 98103121d4f2ed1f1581919b7b1f343ccd410c12 Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 23:15:35 +0000 Subject: (svn r23355) -Codechange: rename all AI* to Script* (Rubidium) --- src/vehicle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vehicle.cpp') diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 8ddd6213f..aa0319466 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -703,7 +703,7 @@ void Vehicle::HandlePathfindingResult(bool path_found) /* It is first time the problem occurred, set the "lost" flag. */ SetBit(this->vehicle_flags, VF_PATHFINDER_LOST); /* Notify user about the event. */ - AI::NewEvent(this->owner, new AIEventVehicleLost(this->index)); + AI::NewEvent(this->owner, new ScriptEventVehicleLost(this->index)); if (_settings_client.gui.lost_vehicle_warn && this->owner == _local_company) { SetDParam(0, this->index); AddVehicleNewsItem(STR_NEWS_VEHICLE_IS_LOST, NS_ADVICE, this->index); @@ -1380,7 +1380,7 @@ void VehicleEnterDepot(Vehicle *v) SetDParam(0, v->index); AddVehicleNewsItem(STR_NEWS_TRAIN_IS_WAITING + v->type, NS_ADVICE, v->index); } - AI::NewEvent(v->owner, new AIEventVehicleWaitingInDepot(v->index)); + AI::NewEvent(v->owner, new ScriptEventVehicleWaitingInDepot(v->index)); } } } @@ -2389,7 +2389,7 @@ void VehiclesYearlyLoop() v->index ); } - AI::NewEvent(v->owner, new AIEventVehicleUnprofitable(v->index)); + AI::NewEvent(v->owner, new ScriptEventVehicleUnprofitable(v->index)); } v->profit_last_year = v->profit_this_year; -- cgit v1.2.3-54-g00ecf