(svn r20816) -Codechange [FS#3835]: make waypoint default names work like depots, stations and vehicles (Krille)

This commit is contained in:
rubidium
2010-09-16 16:31:57 +00:00
parent b01c63cd23
commit af18c30f30
5 changed files with 20 additions and 13 deletions

View File

@@ -406,13 +406,7 @@ CommandCost CmdRenameWaypoint(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
if (flags & DC_EXEC) {
free(wp->name);
if (reset) {
wp->name = NULL;
MakeDefaultName(wp);
} else {
wp->name = strdup(text);
}
wp->name = reset ? NULL : strdup(text);
wp->UpdateVirtCoord();
}