Changeset - r21745:918341e25b02
[Not reviewed]
master
0 2 0
rubidium - 10 years ago 2014-09-21 12:44:38
rubidium@openttd.org
(svn r26888) -Codechange: use ints for some z-levels of vehicles (ic111)
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/ground_vehicle.hpp
Show inline comments
 
@@ -231,9 +231,9 @@ struct GroundVehicle : public Specialize
 
	 * @param update_delta Indicates to also update the delta.
 
	 * @return Old height of the vehicle.
 
	 */
 
	inline byte UpdateInclination(bool new_tile, bool update_delta)
 
	inline int UpdateInclination(bool new_tile, bool update_delta)
 
	{
 
		byte old_z = this->z_pos;
 
		int old_z = this->z_pos;
 

	
 
		if (new_tile) {
 
			this->UpdateZPositionAndInclination();
src/roadveh_cmd.cpp
Show inline comments
 
@@ -847,7 +847,7 @@ static void RoadVehCheckOvertake(RoadVeh
 
	v->overtaking = RVSB_DRIVE_SIDE;
 
}
 

	
 
static void RoadZPosAffectSpeed(RoadVehicle *v, byte old_z)
 
static void RoadZPosAffectSpeed(RoadVehicle *v, int old_z)
 
{
 
	if (old_z == v->z_pos || _settings_game.vehicle.roadveh_acceleration_model != AM_ORIGINAL) return;
 

	
0 comments (0 inline, 0 general)