changed team structure
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user