mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r18536) -Fix [FS#3386]: MSVC warning. Patch by pavel1269
This commit is contained in:
parent
43a5dd8f86
commit
730f0483b9
@ -1558,7 +1558,7 @@ CommandCost Vehicle::SendToDepot(DoCommandFlag flags, DepotCommand command)
|
|||||||
if (this->IsStoppedInDepot()) return CMD_ERROR;
|
if (this->IsStoppedInDepot()) return CMD_ERROR;
|
||||||
|
|
||||||
if (this->current_order.IsType(OT_GOTO_DEPOT)) {
|
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) {
|
if (!!(command & DEPOT_SERVICE) == halt_in_depot) {
|
||||||
/* We called with a different DEPOT_SERVICE setting.
|
/* 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.
|
* Now we change the setting to apply the new one and let the vehicle head for the same depot.
|
||||||
|
Loading…
Reference in New Issue
Block a user