summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-09-14 18:03:38 +0000
committerDarkvater <Darkvater@openttd.org>2005-09-14 18:03:38 +0000
commitc0c75ef16e57e6f2bbc8f3b7eeca2ec6b26ba053 (patch)
tree1c4620d5f83933db927ef94bd8a085442eaca0c1 /train_cmd.c
parent7cb1b719cf4e0e42c4afa103db68740f376df45c (diff)
downloadopenttd-c0c75ef16e57e6f2bbc8f3b7eeca2ec6b26ba053.tar.xz
(svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone
- Add IsLocalPlayer() which substitutes _local_player == _current_player
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 2e339020a..c37d5d221 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -1043,7 +1043,7 @@ int32 CmdSellRailWagon(int x, int y, uint32 flags, uint32 p1, uint32 p2)
new_f->orders = first->orders;
new_f->num_orders = first->num_orders;
first->orders = NULL; // XXX - to not to delete the orders */
- ShowTrainViewWindow(new_f);
+ if (IsLocalPlayer()) ShowTrainViewWindow(new_f);
}
}
}