C++ - Lua player syncing refactoring

This commit is contained in:
devZoGok
2023-12-09 12:27:31 +02:00
parent 90ebaf467f
commit a3e40d7810
6 changed files with 35 additions and 15 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ namespace battleship{
int numPlayers = map->getNumSpawnPoints();
for(int i = 0; i < numPlayers; i++){
Player *player = new Player(0, 0, 0);
Player *player = new Player(0, 0, i + 1, false);
map->loadPlayerGameObjects(player);
Game::getSingleton()->addPlayer(player);
}