(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user