Changeset - r15033:7478447d4953
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2010-04-17 17:45:44
yexo@openttd.org
(svn r19660) -Feature: [NewGRF] support cb36 for aircraft speed also in the build menu
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/engine.cpp
Show inline comments
 
@@ -290,8 +290,13 @@ uint Engine::GetDisplayMaxSpeed() const
 
		case VEH_SHIP:
 
			return GetEngineProperty(this->index, PROP_SHIP_SPEED, this->u.ship.max_speed) / 2;
 

	
 
		case VEH_AIRCRAFT:
 
		case VEH_AIRCRAFT: {
 
			uint max_speed = GetEngineProperty(this->index, PROP_AIRCRAFT_SPEED, 0);
 
			if (max_speed != 0) {
 
				return (max_speed * 129) / 10;
 
			}
 
			return this->u.air.max_speed;
 
		}
 

	
 
		default: NOT_REACHED();
 
	}
0 comments (0 inline, 0 general)