(svn r8781) -Fix
authortron
Sat, 17 Feb 2007 15:34:05 +0000
changeset 6051 99d34e5bbaa1
parent 6050 ea2f361715ad
child 6052 ed3d260a32bc
(svn r8781) -Fix

A spectator cannot build stations, so do not include a special case for him
src/station_cmd.cpp
--- a/src/station_cmd.cpp	Sat Feb 17 15:17:47 2007 +0000
+++ b/src/station_cmd.cpp	Sat Feb 17 15:34:05 2007 +0000
@@ -338,7 +338,7 @@
 	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) {