(svn r2403) if cascade -> switch
This commit is contained in:
@@ -823,12 +823,11 @@ static bool UpdateAircraftSpeed(Vehicle *v)
|
|||||||
// get Aircraft running altitude
|
// get Aircraft running altitude
|
||||||
static byte GetAircraftFlyingAltitude(const Vehicle *v)
|
static byte GetAircraftFlyingAltitude(const Vehicle *v)
|
||||||
{
|
{
|
||||||
byte maxz = 162;
|
switch (v->max_speed) {
|
||||||
if (v->max_speed != 37) {
|
case 37: return 162;
|
||||||
maxz = 171;
|
case 74: return 171;
|
||||||
if (v->max_speed != 74) {maxz = 180;}
|
default: return 180;
|
||||||
}
|
}
|
||||||
return maxz;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool AircraftController(Vehicle *v)
|
static bool AircraftController(Vehicle *v)
|
||||||
|
Reference in New Issue
Block a user