diff options
author | rubidium <rubidium@openttd.org> | 2010-09-16 16:31:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-09-16 16:31:57 +0000 |
commit | af18c30f30d550b98f7fe3dc89c8977a2aeb7f51 (patch) | |
tree | 9c154aa95356c740d333b8f92ee34259272cc914 /src/waypoint_cmd.cpp | |
parent | b01c63cd23b3c60de3b48478b5287cdaeffed974 (diff) | |
download | openttd-af18c30f30d550b98f7fe3dc89c8977a2aeb7f51.tar.xz |
(svn r20816) -Codechange [FS#3835]: make waypoint default names work like depots, stations and vehicles (Krille)
Diffstat (limited to 'src/waypoint_cmd.cpp')
-rw-r--r-- | src/waypoint_cmd.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp index 724f193af..c7095673a 100644 --- a/src/waypoint_cmd.cpp +++ b/src/waypoint_cmd.cpp @@ -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(); } |