diff options
author | rubidium <rubidium@openttd.org> | 2009-07-16 20:15:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-16 20:15:28 +0000 |
commit | dea1144bcb52b6c5f2c985395b2775cedcbff5ce (patch) | |
tree | 3cebb6aa3ae76df53289dc9feae68b253ea6a101 /src/waypoint_cmd.cpp | |
parent | 1f29e38b8372484d51d852b89fc957eb53635ecb (diff) | |
download | openttd-dea1144bcb52b6c5f2c985395b2775cedcbff5ce.tar.xz |
(svn r16850) -Codechange: unify some naming of variables between waypoints and stations.
Diffstat (limited to 'src/waypoint_cmd.cpp')
-rw-r--r-- | src/waypoint_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp index ded31903c..493953020 100644 --- a/src/waypoint_cmd.cpp +++ b/src/waypoint_cmd.cpp @@ -104,7 +104,7 @@ static Waypoint *FindDeletedWaypointCloseTo(TileIndex tile) uint thres = 8; FOR_ALL_WAYPOINTS(wp) { - if (wp->deleted && wp->owner == _current_company) { + if (wp->delete_ctr != 0 && wp->owner == _current_company) { uint cur_dist = DistanceManhattan(tile, wp->xy); if (cur_dist < thres) { @@ -205,7 +205,7 @@ CommandCost CmdBuildTrainWaypoint(TileIndex tile, DoCommandFlag flags, uint32 p1 wp->localidx = 0; } - wp->deleted = 0; + wp->delete_ctr = 0; wp->build_date = _date; if (wp->town_index == INVALID_TOWN) MakeDefaultWaypointName(wp); @@ -239,7 +239,7 @@ CommandCost RemoveTrainWaypoint(TileIndex tile, DoCommandFlag flags, bool justre Track track = GetRailWaypointTrack(tile); wp = GetWaypointByTile(tile); - wp->deleted = 30; // let it live for this many days before we do the actual deletion. + wp->delete_ctr = 30; // let it live for this many days before we do the actual deletion. wp->sign.MarkDirty(); Train *v = NULL; |