(svn r20816) -Codechange [FS#3835]: make waypoint default names work like depots, stations and vehicles (Krille)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user