summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2005-04-02 01:08:01 +0000
committerpasky <pasky@openttd.org>2005-04-02 01:08:01 +0000
commitc68e9478fe9ec6ac80f08c791de50175e9dd945e (patch)
treeb87a813380757e953eec1f7914dcb1de5288141b /train_cmd.c
parenta636a369890263b2f97938a79ca8b9621ac75cb8 (diff)
downloadopenttd-c68e9478fe9ec6ac80f08c791de50175e9dd945e.tar.xz
(svn r2119) - Fix: [ 1172878 ] Trains "Go to depot" button: click twice skip to next order (patch by Loic GUILLOUX). I also added short explanation of OF_/OFB_ difference to order.h.
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 0a49aea89..198125281 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -1360,7 +1360,7 @@ int32 CmdTrainGotoDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2)
if (v->current_order.type == OT_GOTO_DEPOT) {
if (flags & DC_EXEC) {
- if (HASBIT(v->current_order.flags, OF_PART_OF_ORDERS)) {
+ if (HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) {
v->u.rail.days_since_order_progr = 0;
v->cur_order_index++;
}