summaryrefslogtreecommitdiff
path: root/ship_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-06-29 08:58:08 +0000
committerpeter1138 <peter1138@openttd.org>2006-06-29 08:58:08 +0000
commit34e18cbdfe191289e79cad4f253b90a110db7057 (patch)
treefaebf81fae1ba3df65ac2ccb7f9bfa02e8e7c71b /ship_cmd.c
parentad69195dec272ca0f5debfe015027c1c43d240e3 (diff)
downloadopenttd-34e18cbdfe191289e79cad4f253b90a110db7057.tar.xz
(svn r5427) - Codechange: testing for "== true" is redundant.
Diffstat (limited to 'ship_cmd.c')
-rw-r--r--ship_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index 85fdbef99..009d243fa 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -850,7 +850,7 @@ int32 CmdBuildShip(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (!IsTileOwner(tile, _current_player)) return CMD_ERROR;
v = AllocateVehicle();
- unit_num = (HASBIT(p2, 0) == true) ? 0 : GetFreeUnitNumber(VEH_Ship);
+ unit_num = HASBIT(p2, 0) ? 0 : GetFreeUnitNumber(VEH_Ship);
if (v == NULL || IsOrderPoolFull() || unit_num > _patches.max_ships)
return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME);