mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r8781) -Fix
A spectator cannot build stations, so do not include a special case for him
This commit is contained in:
parent
992916349d
commit
b6d2172678
@ -338,7 +338,7 @@ static Station* GetClosestStationFromTile(TileIndex tile, uint threshold, Player
|
|||||||
Station* st;
|
Station* st;
|
||||||
|
|
||||||
FOR_ALL_STATIONS(st) {
|
FOR_ALL_STATIONS(st) {
|
||||||
if ((owner == PLAYER_SPECTATOR || st->owner == owner)) {
|
if (st->owner == owner) {
|
||||||
uint cur_dist = DistanceManhattan(tile, st->xy);
|
uint cur_dist = DistanceManhattan(tile, st->xy);
|
||||||
|
|
||||||
if (cur_dist < threshold) {
|
if (cur_dist < threshold) {
|
||||||
|
Loading…
Reference in New Issue
Block a user