Mercurial > hg > openttd
changeset 8501:aea80814ba2b draft
(svn r12076) -Fix: when reusing a renamed deleted waypoint, keep the new name
author | glx <glx@openttd.org> |
---|---|
date | Thu, 07 Feb 2008 01:56:39 +0000 |
parents | 83450457346b |
children | 86886015bbb8 |
files | src/waypoint.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -197,7 +197,7 @@ wp_auto_delete = wp; - wp->town_index = 0; + wp->town_index = INVALID_TOWN; wp->name = NULL; wp->town_cn = 0; } else if (flags & DC_EXEC) { @@ -241,7 +241,7 @@ wp->deleted = 0; wp->build_date = _date; - if (wp->town_index == 0) MakeDefaultWaypointName(wp); + if (wp->town_index == INVALID_TOWN) MakeDefaultWaypointName(wp); UpdateWaypointSign(wp); RedrawWaypointSign(wp);