summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-17 15:34:05 +0000
committertron <tron@openttd.org>2007-02-17 15:34:05 +0000
commit97acc0ff25ae4e8e049b5615cd0893fb0711f67c (patch)
tree431cee9904b1b614430b43cd60d0c1e37e0c7bda /src
parentdf183d788e1687d7389cfab5dac07a6c65ee7e22 (diff)
downloadopenttd-97acc0ff25ae4e8e049b5615cd0893fb0711f67c.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.cpp2
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) {