summaryrefslogtreecommitdiff
path: root/ship_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-02 09:35:03 +0000
committerbjarni <bjarni@openttd.org>2006-09-02 09:35:03 +0000
commit61e2fa3cd2a9cbbf4e9543b898b31d5f464491df (patch)
tree5622ff29760301d40e9f508613fd80000be331fb /ship_cmd.c
parent1d1a4839c37fab6649dd7bd4fa1460ed74f5854c (diff)
downloadopenttd-61e2fa3cd2a9cbbf4e9543b898b31d5f464491df.tar.xz
(svn r6304) -Codechange r6295: Use !! instead of (bool) in commands to send vehicles to depots
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 87faf037c..7cd4ddccd 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -1020,7 +1020,7 @@ int32 CmdSendShipToDepot(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
/* If the current orders are already goto-depot */
if (v->current_order.type == OT_GOTO_DEPOT) {
- 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 depot.
* Note: the if is (true for requesting service == true for ordered to stop in depot) */