1
0
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:
celestar
2005-01-19 10:00:37 +00:00
parent a6d1544447
commit 941da5dc94
2 changed files with 11 additions and 6 deletions

View File

@@ -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)