Changeset - r19239:1aef34079c1f
[Not reviewed]
master
0 1 0
michi_cc - 12 years ago 2012-04-17 19:44:47
michi_cc@openttd.org
(svn r24142) -Feature [FS#3576]: Randomise count of passengers killed in a crash. (riffraffselbow)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -197,13 +197,13 @@ uint Vehicle::Crash(bool flooded)
 
	/* Dirty some windows */
 
	InvalidateWindowClassesData(GetWindowClassForVehicleType(this->type), 0);
 
	SetWindowWidgetDirty(WC_VEHICLE_VIEW, this->index, WID_VV_START_STOP);
 
	SetWindowDirty(WC_VEHICLE_DETAILS, this->index);
 
	SetWindowDirty(WC_VEHICLE_DEPOT, this->tile);
 

	
 
	return pass;
 
	return RandomRange(pass + 1); // Randomise deceased passengers.
 
}
 

	
 

	
 
/**
 
 * Displays a "NewGrf Bug" error message for a engine, and pauses the game if not networking.
 
 * @param engine The engine that caused the problem
0 comments (0 inline, 0 general)