fix: updated world write test

This commit is contained in:
2021-09-01 15:51:40 +02:00
parent 2a6ac699e5
commit 056534028d

View File

@@ -125,12 +125,12 @@ bool World::loadMapFromFile(const std::string& fileName){
blueTile1.team_owner = TeamColor::Blue;
m_TilePalette.push_back(std::make_shared<TowerTile>(blueTile1));
m_Castles[(uint) TeamColor::Red].x = 58;
m_Castles[(uint) TeamColor::Red].y = 43;
getRedTeam().getCastle().x = 58;
getRedTeam().getCastle().y = 43;
m_Spawns[(uint) TeamColor::Red].direction = Direction::PositiveY;
m_Spawns[(uint) TeamColor::Red].x = 13;
m_Spawns[(uint) TeamColor::Red].y = 13;
getRedTeam().getSpawn().x = 13;
getRedTeam().getSpawn().y = 13;
getRedTeam().getSpawn().direction = Direction::PositiveY;
m_SpawnColorPalette[(uint) TeamColor::Red] = {255, 0, 0};
@@ -262,15 +262,14 @@ bool World::loadMapFromFile(const std::string& fileName){
m_Chunks.insert({{1, 1}, std::make_shared<Chunk>(chunk2)});
// blue map = same but with offset of 64
// blue map = same but with offset of 64 (in x coordinate)
getBlueTeam().getCastle().x = 58 + 64;
getBlueTeam().getCastle().y = 43;
m_Castles[(uint) TeamColor::Blue].x = 58 + 64;
m_Castles[(uint) TeamColor::Blue].y = 43;
m_Spawns[(uint) TeamColor::Blue].direction = Direction::PositiveY;
m_Spawns[(uint) TeamColor::Blue].x = 13 + 64;
m_Spawns[(uint) TeamColor::Blue].y = 13;
getBlueTeam().getSpawn().x = 13 + 64;
getBlueTeam().getSpawn().y = 13;
getBlueTeam().getSpawn().direction = Direction::PositiveY;
m_SpawnColorPalette[(uint) TeamColor::Blue] = {0, 0, 255};