diff options
author | rubidium <rubidium@openttd.org> | 2008-04-08 22:41:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-08 22:41:14 +0000 |
commit | d8f88f06d4ab707aea770e4340c56b3567410c80 (patch) | |
tree | 79866a84b0c1150c35c62f0b2c8b2eba19c90b2d /src/order_base.h | |
parent | 627322b9f7edfa0dd968a6856044258953dbc4c0 (diff) | |
download | openttd-d8f88f06d4ab707aea770e4340c56b3567410c80.tar.xz |
(svn r12633) -Fix: could not make a (go-to) depot order.
Diffstat (limited to 'src/order_base.h')
-rw-r--r-- | src/order_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_base.h b/src/order_base.h index 237b468d6..cb770eaa7 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -169,7 +169,7 @@ public: /** What caused us going to the depot? */ inline OrderDepotTypeFlags GetDepotOrderType() const { return (OrderDepotTypeFlags)this->flags; } /** What are we going to do when in the depot. */ - inline OrderDepotActionFlags GetDepotActionType() const { return (OrderDepotActionFlags)this->flags; } + inline OrderDepotActionFlags GetDepotActionType() const { return (OrderDepotActionFlags)(this->flags & ODATFB_HALT); } /** Set how the consist must be loaded. */ inline void SetLoadType(OrderLoadFlags load_type) { SB(this->flags, 2, 1, !!load_type); } |