mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
multi:: disable achievements in split-screen
This commit is contained in:
parent
6d554d6b2e
commit
a6338d3c49
@ -137,6 +137,7 @@ EX bool wrongMode(char flags) {
|
|||||||
if(land_structure != dls) return true;
|
if(land_structure != dls) return true;
|
||||||
if(numplayers() > 1 && !multi::friendly_fire) return true;
|
if(numplayers() > 1 && !multi::friendly_fire) return true;
|
||||||
if(numplayers() > 1 && multi::pvp_mode) return true;
|
if(numplayers() > 1 && multi::pvp_mode) return true;
|
||||||
|
if(numplayers() > 1 && multi::split_screen) return true;
|
||||||
if((numplayers() > 1) != (flags == rg::multi)) return true;
|
if((numplayers() > 1) != (flags == rg::multi)) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -781,7 +782,8 @@ EX void achievement_final(bool really_final) {
|
|||||||
if(NONSTDVAR) return;
|
if(NONSTDVAR) return;
|
||||||
|
|
||||||
if(numplayers() > 1 && !multi::friendly_fire) return;
|
if(numplayers() > 1 && !multi::friendly_fire) return;
|
||||||
if(numplayers() > 1 && multi::pvp) return;
|
if(numplayers() > 1 && multi::pvp_mode) return;
|
||||||
|
if(numplayers() > 1 && multi::split_screen) return true;
|
||||||
|
|
||||||
// determine the correct leaderboard ID for 'total score'
|
// determine the correct leaderboard ID for 'total score'
|
||||||
// or return if no leaderboard for the current mode
|
// or return if no leaderboard for the current mode
|
||||||
|
@ -537,6 +537,8 @@ EX void showConfigureMultiplayer() {
|
|||||||
dialog::addInfo(XLAT("PvP grants infinite lives -- achievements disabled"));
|
dialog::addInfo(XLAT("PvP grants infinite lives -- achievements disabled"));
|
||||||
else if(friendly_fire)
|
else if(friendly_fire)
|
||||||
dialog::addInfo(XLAT("friendly fire off -- achievements disabled"));
|
dialog::addInfo(XLAT("friendly fire off -- achievements disabled"));
|
||||||
|
else if(split_screen)
|
||||||
|
dialog::addInfo(XLAT("achievements disabled in split screen"));
|
||||||
else
|
else
|
||||||
dialog::addBreak(100);
|
dialog::addBreak(100);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user