|
@@ -33,24 +33,26 @@
|
|
|
#include "station_base.h"
|
|
|
#include "ai/ai.hpp"
|
|
|
#include "game/game.hpp"
|
|
|
#include "core/random_func.hpp"
|
|
|
#include "core/backup_type.hpp"
|
|
|
#include "date_func.h"
|
|
|
#include "company_base.h"
|
|
|
#include "company_gui.h"
|
|
|
#include "newgrf_generic.h"
|
|
|
|
|
|
#include "table/strings.h"
|
|
|
|
|
|
#include "safeguards.h"
|
|
|
|
|
|
/**
|
|
|
* Describes from which directions a specific slope can be flooded (if the tile is floodable at all).
|
|
|
*/
|
|
|
static const uint8 _flood_from_dirs[] = {
|
|
|
(1 << DIR_NW) | (1 << DIR_SW) | (1 << DIR_SE) | (1 << DIR_NE), // SLOPE_FLAT
|
|
|
(1 << DIR_NE) | (1 << DIR_SE), // SLOPE_W
|
|
|
(1 << DIR_NW) | (1 << DIR_NE), // SLOPE_S
|
|
|
(1 << DIR_NE), // SLOPE_SW
|
|
|
(1 << DIR_NW) | (1 << DIR_SW), // SLOPE_E
|
|
|
0, // SLOPE_EW
|
|
|
(1 << DIR_NW), // SLOPE_SE
|
|
|
(1 << DIR_N ) | (1 << DIR_NW) | (1 << DIR_NE), // SLOPE_WSE, SLOPE_STEEP_S
|