File diff r21053:8753c8b188ee → r21054:4d49b7f1aef2
src/aircraft_cmd.cpp
Show inline comments
 
@@ -1032,7 +1032,7 @@ static bool HandleCrashedAircraft(Aircra
 

	
 
	/* make aircraft crash down to the ground */
 
	if (v->crashed_counter < 500 && st == NULL && ((v->crashed_counter % 3) == 0) ) {
 
		int z = GetSlopePixelZ(v->x_pos, v->y_pos);
 
		int z = GetSlopePixelZ(Clamp(v->x_pos, 0, MapMaxX() * TILE_SIZE), Clamp(v->y_pos, 0, MapMaxY() * TILE_SIZE));
 
		v->z_pos -= 1;
 
		if (v->z_pos == z) {
 
			v->crashed_counter = 500;