mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
dual and multiplayer are not compatible (do not appear if other is on)
This commit is contained in:
parent
c9655a29a5
commit
c820f9a2f0
@ -516,8 +516,10 @@ void showChangeMode() {
|
||||
dialog::addBoolItem(XLAT("racing mode"), racing::on, 'R');
|
||||
#endif
|
||||
#if CAP_ARCM
|
||||
dialog::addBoolItem(XLAT("dual geometry mode"), dual::state, 'D');
|
||||
dialog::add_action([] { dialog::do_if_confirmed([] { restart_game(rg::dualmode); }); });
|
||||
if(multi::players == 1) {
|
||||
dialog::addBoolItem(XLAT("dual geometry mode"), dual::state, 'D');
|
||||
dialog::add_action([] { dialog::do_if_confirmed([] { restart_game(rg::dualmode); }); });
|
||||
}
|
||||
#endif
|
||||
#if CAP_DAILY
|
||||
dialog::addBoolItem(XLAT("Strange Challenge"), daily::on, 'z');
|
||||
|
@ -473,7 +473,7 @@ void showConfigureMultiplayer() {
|
||||
string s = player_count_name(i);
|
||||
if(i <= players) s += dsc(i-1);
|
||||
dialog::addBoolItem(s, '1', i == multi::players);
|
||||
dialog::add_action([i] {
|
||||
if(!dual::state) dialog::add_action([i] {
|
||||
dialog::do_if_confirmed([i] {
|
||||
stop_game();
|
||||
players = i;
|
||||
|
Loading…
Reference in New Issue
Block a user