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 /road_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 'road_cmd.c')
-rw-r--r-- | road_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c index 3b6eff3c1..17aac26d6 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -662,7 +662,7 @@ int32 CmdBuildRoadDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2) return CMD_ERROR; if (flags & DC_EXEC) { - if (_current_player == _local_player) _last_built_road_depot_tile = tile; + if (IsLocalPlayer()) _last_built_road_depot_tile = tile; dep->xy = tile; dep->town_index = ClosestTownFromTile(tile, (uint)-1)->index; |