summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-01-19 10:00:37 +0000
committercelestar <celestar@openttd.org>2005-01-19 10:00:37 +0000
commit321c7534185747ff0e57a5b88191bcc913d07ca9 (patch)
treecec393074c8cf3a6653936b13c6fc1eb0ec344e1 /train_cmd.c
parent654d75f795a4581582b9c4403ca7b1705504793c (diff)
downloadopenttd-321c7534185747ff0e57a5b88191bcc913d07ca9.tar.xz
(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)
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c5
1 files changed, 1 insertions, 4 deletions
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)