diff options
author | rubidium <rubidium@openttd.org> | 2009-07-22 10:18:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-22 10:18:19 +0000 |
commit | cb0409fe529586fc85cf3a1f7526c2ad6f9a53d6 (patch) | |
tree | 06dbe1abe0377239177fb7909877f9cfdf14f057 /src/terraform_gui.cpp | |
parent | 565b99db223824ae1bf9dd10ffdc075753ce2050 (diff) | |
download | openttd-cb0409fe529586fc85cf3a1f7526c2ad6f9a53d6.tar.xz |
(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
Diffstat (limited to 'src/terraform_gui.cpp')
-rw-r--r-- | src/terraform_gui.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp index ec5bc72f9..a0c0eadd3 100644 --- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -26,7 +26,6 @@ #include "landscape_type.h" #include "tilehighlight_func.h" #include "settings_type.h" -#include "waypoint.h" #include "table/sprites.h" #include "table/strings.h" @@ -639,13 +638,7 @@ static void ResetLandscapeConfirmationCallback(Window *w, bool confirmed) FOR_ALL_BASE_STATIONS(st) { /* There can be buoys, remove them */ if (IsBuoyTile(st->xy)) DoCommand(st->xy, 0, 0, DC_EXEC | DC_BANKRUPT, CMD_LANDSCAPE_CLEAR); - if (st->facilities == 0) delete st; - } - - /* The same for waypoints */ - Waypoint *wp; - FOR_ALL_WAYPOINTS(wp) { - delete wp; + if ((st->facilities & ~FACIL_WAYPOINT) == 0) delete st; } MarkWholeScreenDirty(); |