1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 02:17:40 +00:00

multi:: split-screen mode is now an option

This commit is contained in:
Zeno Rogue
2022-03-27 09:02:06 +02:00
parent bcc7c9c646
commit 08cfed6658
2 changed files with 7 additions and 1 deletions

View File

@@ -1497,6 +1497,7 @@ EX int calcfps() {
EX namespace subscreens {
EX vector<display_data> player_displays;
/** 'in' is on if we are currently working on a single display */
EX bool in;
EX int current_player;
@@ -1528,7 +1529,7 @@ EX namespace subscreens {
EX bool split(reaction_t what) {
using namespace racing;
if(in) return false;
if(!racing::on && !(shmup::on && GDIM == 3)) return false;
if(!multi::split_screen) return false;
if(!player_displays.empty()) {
in = true;
int& p = current_player;