mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 08:29:11 +00:00
(svn r1565) -Fix: [ 1104969 ] Aircraft in hangar messages are now revalidated before
display -CodeChange: replaced one if (foo) return true else return false by return (foo)
This commit is contained in:
@@ -2622,10 +2622,7 @@ static const byte _depot_track_ind[4] = {0,1,0,1};
|
||||
bool ValidateTrainInDepot( uint data_a, uint data_b )
|
||||
{
|
||||
Vehicle *v = GetVehicle(data_a);
|
||||
if (v->u.rail.track == 0x80 && (v->vehstatus | VS_STOPPED))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
return (v->u.rail.track == 0x80 && (v->vehstatus | VS_STOPPED));
|
||||
}
|
||||
|
||||
void TrainEnterDepot(Vehicle *v, uint tile)
|
||||
|
Reference in New Issue
Block a user