mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
only adding as many players as were selected for the match
This commit is contained in:
@@ -403,9 +403,8 @@ namespace battleship{
|
||||
assetManager->load(path + vfxPrefix, true);
|
||||
assetManager->load(path + gameObjPrefix, true);
|
||||
|
||||
int numPlayers = Game::getSingleton()->getNumPlayers();
|
||||
string playerInd = "players";
|
||||
SOL_LUA_VIEW.script("numPlayers = #" + mapTable + "." + playerInd);
|
||||
int numPlayers = SOL_LUA_VIEW["numPlayers"];
|
||||
|
||||
for(int i = 0; i < numPlayers; i++){
|
||||
string resDepInd = "resourceDeposits";
|
||||
|
||||
Reference in New Issue
Block a user