Have the server respect gameType info when setting up zones.

* ServerPlayer::setupZones is now passed the room->getGameTypes();
* ServerPlayer::setupZones now checks if the GameType String includes "Commander" and then sets the life total to 40 instead.
This commit is contained in:
Lukas Brübach 2024-11-16 11:37:06 +01:00
parent dde2f8b9ad
commit fb06f1197a
3 changed files with 11 additions and 5 deletions

View file

@ -323,7 +323,7 @@ void Server_Game::doStartGameIfReady()
}
for (Server_Player *player : players.values()) {
if (!player->getSpectator())
player->setupZones();
player->setupZones(room->getGameTypes());
}
gameStarted = true;