From 5221f35182beb396615dc8bcd2e902828a83aa65 Mon Sep 17 00:00:00 2001 From: truelight Date: Sun, 12 Dec 2004 15:43:55 +0000 Subject: (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) --- train_gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'train_gui.c') 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)); -- cgit v1.2.3-54-g00ecf