changed team structure

This commit is contained in:
2021-08-21 11:46:21 +02:00
parent 7052edfef1
commit 88d2644219
8 changed files with 81 additions and 38 deletions

View File

@@ -3,6 +3,8 @@
#include <iostream>
#include <string.h>
#include "game/BaseGame.h"
namespace td {
namespace render {
@@ -114,7 +116,7 @@ GL::VAO loadWorldModel(const td::game::World* world){
}
for (int spawnColor = 0; spawnColor < 2; spawnColor++){
const game::Spawn& spawn = world->getSpawn(game::TeamColor(spawnColor));
const game::Spawn& spawn = world->getTeam(game::TeamColor(spawnColor)).getSpawn();
float fromX = spawn.x - 2, toX = spawn.x + 3;
float fromY = spawn.y - 2, toY = spawn.y + 3;