only adding as many players as were selected for the match

This commit is contained in:
devZoGok
2025-03-08 12:08:36 +02:00
parent 48c38e9ec9
commit 31aa7c44a6
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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";