(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h

This commit is contained in:
rubidium
2009-07-22 10:18:19 +00:00
parent 565b99db22
commit cb0409fe52
32 changed files with 58 additions and 45 deletions

View File

@@ -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();