mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
C++ - Lua player syncing refactoring
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user