summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-19 15:31:23 +0000
committerrubidium <rubidium@openttd.org>2009-12-19 15:31:23 +0000
commit5c2b6a894376571df03cab5ae659f1888e011e33 (patch)
tree1e71bdad43c93ebe8ec35db6c7bebee27cb7865e /src
parentc5159055e3e8bad4e5daa302bb3132ff92f09b47 (diff)
downloadopenttd-5c2b6a894376571df03cab5ae659f1888e011e33.tar.xz
(svn r18536) -Fix [FS#3386]: MSVC warning. Patch by pavel1269
Diffstat (limited to 'src')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 9e0e7b8ef..3779c07bc 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1558,7 +1558,7 @@ CommandCost Vehicle::SendToDepot(DoCommandFlag flags, DepotCommand command)
if (this->IsStoppedInDepot()) return CMD_ERROR;
if (this->current_order.IsType(OT_GOTO_DEPOT)) {
- bool halt_in_depot = this->current_order.GetDepotActionType() & ODATFB_HALT;
+ bool halt_in_depot = (this->current_order.GetDepotActionType() & ODATFB_HALT) != 0;
if (!!(command & DEPOT_SERVICE) == 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.