diff options
author | truelight <truelight@openttd.org> | 2004-12-12 15:43:55 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-12 15:43:55 +0000 |
commit | 5221f35182beb396615dc8bcd2e902828a83aa65 (patch) | |
tree | 05c646c9077442f97c44846fe57d7386599241d6 /train_gui.c | |
parent | a65302dafe0fb74fea058e834aef304273ab6554 (diff) | |
download | openttd-5221f35182beb396615dc8bcd2e902828a83aa65.tar.xz |
(svn r1025) -Fix: [Network] [ 1083687 ] Sending to depot caused desync because the
new pathfinder uses a random, and the goto_depot uses the new pathfinder
(if enabled)
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c index e05778ea9..92175b13e 100644 --- a/train_gui.c +++ b/train_gui.c @@ -831,7 +831,8 @@ static void TrainViewWndProc(Window *w, WindowEvent *e) ScrollMainWindowTo(v->x_pos, v->y_pos); break; case 6: /* goto depot */ - DoCommandP(v->tile, v->index, 0, NULL, CMD_TRAIN_GOTO_DEPOT | CMD_MSG(STR_8830_CAN_T_SEND_TRAIN_TO_DEPOT)); + /* TrainGotoDepot has a nice randomizer in the pathfinder, which causes desyncs... */ + DoCommandP(v->tile, v->index, 0, NULL, CMD_TRAIN_GOTO_DEPOT | CMD_NO_TEST_IF_IN_NETWORK | CMD_MSG(STR_8830_CAN_T_SEND_TRAIN_TO_DEPOT)); break; case 7: /* force proceed */ DoCommandP(v->tile, v->index, 0, NULL, CMD_FORCE_TRAIN_PROCEED | CMD_MSG(STR_8862_CAN_T_MAKE_TRAIN_PASS_SIGNAL)); |