Mercurial > hg > openttd
changeset 13994:486560a72171 draft
(svn r18536) -Fix [FS#3386]: MSVC warning. Patch by pavel1269
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 19 Dec 2009 15:31:23 +0000 |
parents | d6215232b503 |
children | bc8b836e1fb9 |
files | src/vehicle.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -1558,7 +1558,7 @@ 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.