diff options
author | tron <tron@openttd.org> | 2007-02-17 15:34:05 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-02-17 15:34:05 +0000 |
commit | b6d2172678fd0e753091f4ee4b1b7f00350df93b (patch) | |
tree | 431cee9904b1b614430b43cd60d0c1e37e0c7bda /src | |
parent | 992916349dde3c0596ba388f3bfd2fdb17657533 (diff) | |
download | openttd-b6d2172678fd0e753091f4ee4b1b7f00350df93b.tar.xz |
(svn r8781) -Fix
A spectator cannot build stations, so do not include a special case for him
Diffstat (limited to 'src')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 35ff41c39..2025d9c79 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -338,7 +338,7 @@ static Station* GetClosestStationFromTile(TileIndex tile, uint threshold, Player Station* st; FOR_ALL_STATIONS(st) { - if ((owner == PLAYER_SPECTATOR || st->owner == owner)) { + if (st->owner == owner) { uint cur_dist = DistanceManhattan(tile, st->xy); if (cur_dist < threshold) { |