diff options
author | Darkvater <Darkvater@openttd.org> | 2005-09-14 18:03:38 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-09-14 18:03:38 +0000 |
commit | c0c75ef16e57e6f2bbc8f3b7eeca2ec6b26ba053 (patch) | |
tree | 1c4620d5f83933db927ef94bd8a085442eaca0c1 /train_cmd.c | |
parent | 7cb1b719cf4e0e42c4afa103db68740f376df45c (diff) | |
download | openttd-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.c | 2 |
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); } } } |