Commit 9846fb1d authored by Ira Aspen's avatar Ira Aspen
Browse files

Made reseting the create game dialogue box only select 'Only regeistered...

Made reseting the create game dialogue box only select 'Only regeistered users' if player is a registered user.
parent 154da445
...@@ -193,7 +193,7 @@ void DlgCreateGame::actReset() ...@@ -193,7 +193,7 @@ void DlgCreateGame::actReset()
passwordEdit->setText(""); passwordEdit->setText("");
onlyBuddiesCheckBox->setChecked(false); onlyBuddiesCheckBox->setChecked(false);
onlyRegisteredCheckBox->setChecked(true); onlyRegisteredCheckBox->setChecked(room && room->getUserInfo()->user_level() & ServerInfo_User::IsRegistered);
spectatorsAllowedCheckBox->setChecked(true); spectatorsAllowedCheckBox->setChecked(true);
spectatorsNeedPasswordCheckBox->setChecked(false); spectatorsNeedPasswordCheckBox->setChecked(false);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment