From 61e2fa3cd2a9cbbf4e9543b898b31d5f464491df Mon Sep 17 00:00:00 2001 From: bjarni Date: Sat, 2 Sep 2006 09:35:03 +0000 Subject: (svn r6304) -Codechange r6295: Use !! instead of (bool) in commands to send vehicles to depots --- aircraft_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aircraft_cmd.c') diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 5ffa59faf..f6c991044 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -512,7 +512,7 @@ int32 CmdSendAircraftToHangar(TileIndex tile, uint32 flags, uint32 p1, uint32 p2 if (v->type != VEH_Aircraft || !CheckOwnership(v->owner)) return CMD_ERROR; if (v->current_order.type == OT_GOTO_DEPOT && !(p2 & DEPOT_LOCATE_HANGAR)) { - if ((p2 & DEPOT_SERVICE) == (bool)HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT)) { + if (!!(p2 & DEPOT_SERVICE) == HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT)) { /* We called with a different DEPOT_SERVICE setting. * Now we change the setting to apply the new one and let the vehicle head for the same hangar. * Note: the if is (true for requesting service == true for ordered to stop in hangar) */ -- cgit v1.2.3-70-g09d2