train_cmd.c
changeset 4095 55a5642143f1
parent 4017 035aa73fb8d0
child 4182 20d711816338
--- a/train_cmd.c	Thu Jun 29 07:19:24 2006 +0000
+++ b/train_cmd.c	Thu Jun 29 08:58:08 2006 +0000
@@ -742,7 +742,7 @@
 
 		v = vl[0];
 
-		unit_num = (HASBIT(p2, 0) == true) ? 0 : GetFreeUnitNumber(VEH_Train);
+		unit_num = HASBIT(p2, 0) ? 0 : GetFreeUnitNumber(VEH_Train);
 		if (unit_num > _patches.max_trains)
 			return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME);