Skip to content
Snippets Groups Projects
Commit 0291139d authored by Frederik's avatar Frederik
Browse files

Fix Inverse cliff corners having wrong move cost

parent 58a84720
Branches unit_movement
No related tags found
1 merge request!23Unit movement
...@@ -22,8 +22,8 @@ namespace advanced_wars ...@@ -22,8 +22,8 @@ namespace advanced_wars
const int NUM_TILE_IDS = 30; // Aktualisieren, falls weitere IDs hinzugefügt werden const int NUM_TILE_IDS = 30; // Aktualisieren, falls weitere IDs hinzugefügt werden
const int NUM_MOVEMENT_TYPES = 6; const int NUM_MOVEMENT_TYPES = 6;
const std::array<std::array<int, NUM_MOVEMENT_TYPES>, NUM_TILE_IDS> moveCostTable = {
const std::array<std::array<int, NUM_MOVEMENT_TYPES>, NUM_TILE_IDS> moveCostTable = {{ {
// FOOT, WHEELED, TREAD, AIR, SEA, LANDER // FOOT, WHEELED, TREAD, AIR, SEA, LANDER
{1, 2, 1, 1, 999, 999}, // PLAIN {1, 2, 1, 1, 999, 999}, // PLAIN
{999, 999, 999, 1, 1, 1}, // WATER {999, 999, 999, 1, 1, 1}, // WATER
...@@ -50,11 +50,12 @@ const std::array<std::array<int, NUM_MOVEMENT_TYPES>, NUM_TILE_IDS> moveCostTabl ...@@ -50,11 +50,12 @@ const std::array<std::array<int, NUM_MOVEMENT_TYPES>, NUM_TILE_IDS> moveCostTabl
{999, 999, 999, 1, 1, 1}, // CLIFF_CORNER_TOP_RIGHT {999, 999, 999, 1, 1, 1}, // CLIFF_CORNER_TOP_RIGHT
{999, 999, 999, 1, 1, 1}, // CLIFF_CORNER_BOTTOM_LEFT {999, 999, 999, 1, 1, 1}, // CLIFF_CORNER_BOTTOM_LEFT
{999, 999, 999, 1, 1, 1}, // CLIFF_CORNER_BOTTOM_RIGHT {999, 999, 999, 1, 1, 1}, // CLIFF_CORNER_BOTTOM_RIGHT
{ 1, 2, 1, 1, 999, 999 }, // CLIFF_INVERSE_CORNER_TOP_LEFT {999, 999, 999, 1, 1, 1}, // CLIFF_INVERSE_CORNER_TOP_LEFT
{ 1, 2, 1, 1, 999, 999 }, // CLIFF_INVERSE_CORNER_TOP_RIGHT {999, 999, 999, 1, 1, 1}, // CLIFF_INVERSE_CORNER_TOP_RIGHT
{ 1, 2, 1, 1, 999, 999 }, // CLIFF_INVERSE_CORNER_BOTTOM_LEFT {999, 999, 999, 1, 1, 1}, // CLIFF_INVERSE_CORNER_BOTTOM_LEFT
{ 1, 2, 1, 1, 999, 999 }, // CLIFF_INVERSE_CORNER_BOTTOM_RIGHT {999, 999, 999, 1, 1, 1}, // CLIFF_INVERSE_CORNER_BOTTOM_RIGHT
}}; }
};
enum class LevelState enum class LevelState
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment