mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 23:10: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');
|
dialog::addBoolItem(XLAT("racing mode"), racing::on, 'R');
|
||||||
#endif
|
#endif
|
||||||
#if CAP_ARCM
|
#if CAP_ARCM
|
||||||
dialog::addBoolItem(XLAT("dual geometry mode"), dual::state, 'D');
|
if(multi::players == 1) {
|
||||||
dialog::add_action([] { dialog::do_if_confirmed([] { restart_game(rg::dualmode); }); });
|
dialog::addBoolItem(XLAT("dual geometry mode"), dual::state, 'D');
|
||||||
|
dialog::add_action([] { dialog::do_if_confirmed([] { restart_game(rg::dualmode); }); });
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#if CAP_DAILY
|
#if CAP_DAILY
|
||||||
dialog::addBoolItem(XLAT("Strange Challenge"), daily::on, 'z');
|
dialog::addBoolItem(XLAT("Strange Challenge"), daily::on, 'z');
|
||||||
|
@ -473,7 +473,7 @@ void showConfigureMultiplayer() {
|
|||||||
string s = player_count_name(i);
|
string s = player_count_name(i);
|
||||||
if(i <= players) s += dsc(i-1);
|
if(i <= players) s += dsc(i-1);
|
||||||
dialog::addBoolItem(s, '1', i == multi::players);
|
dialog::addBoolItem(s, '1', i == multi::players);
|
||||||
dialog::add_action([i] {
|
if(!dual::state) dialog::add_action([i] {
|
||||||
dialog::do_if_confirmed([i] {
|
dialog::do_if_confirmed([i] {
|
||||||
stop_game();
|
stop_game();
|
||||||
players = i;
|
players = i;
|
||||||
|
Loading…
Reference in New Issue
Block a user