mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42:15 -07:00
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:
parent
dde2f8b9ad
commit
fb06f1197a
3 changed files with 11 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue