author | Celestar |
Sat, 11 Dec 2004 12:12:51 +0000 | |
changeset 595 | 26c1858eefdd |
parent 594 | 81c0d7edfb17 |
child 596 | e876d7319634 |
station_cmd.c | file | annotate | diff | comparison | revisions |
--- a/station_cmd.c Sat Dec 11 11:00:54 2004 +0000 +++ b/station_cmd.c Sat Dec 11 12:12:51 2004 +0000 @@ -283,7 +283,7 @@ FOR_ALL_STATIONS(st) { cur_dist = GetTileDist(tile, st->xy); - if (cur_dist < threshold && (owner == 0xFF || st->owner == owner)) { + if (cur_dist < threshold && (owner == 0xFF || st->owner == owner) && (st->xy != 0)) { threshold = cur_dist; best_station = st; }