diff options
author | smatz <smatz@openttd.org> | 2009-02-26 14:10:57 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-02-26 14:10:57 +0000 |
commit | 1a940c24e3f0689320cb1047ae13a119b75594d3 (patch) | |
tree | 59d18ac6303f7accb510edb46008d9560a828869 /src/waypoint.cpp | |
parent | 3fdac6f702b0a2e8534b8f1c26faba02118ed8df (diff) | |
download | openttd-1a940c24e3f0689320cb1047ae13a119b75594d3.tar.xz |
(svn r15589) -Fix: drawing of waypoints with invalid owner was broken
-Change: don't take over waypoints without owner, it could belong to a bankrupted company (and the code was broken) - savegame conversion code is a bit more liberal now, too
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r-- | src/waypoint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp index 81bc5cd86..e34e0c063 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -133,7 +133,7 @@ static Waypoint *FindDeletedWaypointCloseTo(TileIndex tile) uint thres = 8; FOR_ALL_WAYPOINTS(wp) { - if (wp->deleted && (wp->owner == OWNER_NONE || wp->owner == _current_company)) { + if (wp->deleted && wp->owner == _current_company) { uint cur_dist = DistanceManhattan(tile, wp->xy); if (cur_dist < thres) { |