From 941da5dc946d7188e73de4abbe0f6b6e30000763 Mon Sep 17 00:00:00 2001 From: celestar Date: Wed, 19 Jan 2005 10:00:37 +0000 Subject: (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) --- train_cmd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'train_cmd.c') diff --git a/train_cmd.c b/train_cmd.c index 0f0fd6c5a..9bf9d210c 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -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) -- cgit v1.2.3-54-g00ecf