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 | 2131f68ae2c65799f2ce82ee84c7022264efa469 (patch) | |
tree | 1c4620d5f83933db927ef94bd8a085442eaca0c1 /rail_cmd.c | |
parent | 1bf06d7da4043d007d8a174b2187153bc818bf83 (diff) | |
download | openttd-2131f68ae2c65799f2ce82ee84c7022264efa469.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 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index a9178c680..bf1a7d705 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -696,7 +696,7 @@ int32 CmdBuildTrainDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2) return CMD_ERROR; if (flags & DC_EXEC) { - if (_current_player == _local_player) _last_built_train_depot_tile = tile; + if (IsLocalPlayer()) _last_built_train_depot_tile = tile; ModifyTile(tile, MP_SETTYPE(MP_RAILWAY) | |