File diff r18763:938cba34d55a → r18764:f6e8611401f3
src/roadveh_cmd.cpp
Show inline comments
 
@@ -27,6 +27,7 @@
 
#include "vehicle_func.h"
 
#include "sound_func.h"
 
#include "ai/ai.hpp"
 
#include "game/game.hpp"
 
#include "depot_map.h"
 
#include "effectvehicle_func.h"
 
#include "roadstop_base.h"
 
@@ -521,6 +522,7 @@ static void RoadVehCrash(RoadVehicle *v)
 
	uint pass = v->Crash();
 

	
 
	AI::NewEvent(v->owner, new ScriptEventVehicleCrashed(v->index, v->tile, ScriptEventVehicleCrashed::CRASH_RV_LEVEL_CROSSING));
 
	Game::NewEvent(new ScriptEventVehicleCrashed(v->index, v->tile, ScriptEventVehicleCrashed::CRASH_RV_LEVEL_CROSSING));
 

	
 
	SetDParam(0, pass);
 
	AddVehicleNewsItem(
 
@@ -669,6 +671,7 @@ static void RoadVehArrivesAt(const RoadV
 
				st->index
 
			);
 
			AI::NewEvent(v->owner, new ScriptEventStationFirstVehicle(st->index, v->index));
 
			Game::NewEvent(new ScriptEventStationFirstVehicle(st->index, v->index));
 
		}
 
	} else {
 
		/* Check if station was ever visited before */
 
@@ -682,6 +685,7 @@ static void RoadVehArrivesAt(const RoadV
 
				st->index
 
			);
 
			AI::NewEvent(v->owner, new ScriptEventStationFirstVehicle(st->index, v->index));
 
			Game::NewEvent(new ScriptEventStationFirstVehicle(st->index, v->index));
 
		}
 
	}
 
}