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/saveload/afterload.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/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 3d5af563c..9d1537a7d 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -447,8 +447,8 @@ bool AfterLoadGame() Waypoint *wp; FOR_ALL_WAYPOINTS(wp) { - wp->name = CopyFromOldName(wp->string); - wp->string = STR_EMPTY; + wp->name = CopyFromOldName(wp->string_id); + wp->string_id = STR_NULL; } } @@ -1005,7 +1005,7 @@ bool AfterLoadGame() Waypoint *wp; FOR_ALL_WAYPOINTS(wp) { - if (wp->deleted == 0) { + if (wp->delete_ctr == 0) { const StationSpec *statspec = NULL; if (HasBit(_m[wp->xy].m3, 4)) |