1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-07 01:03:00 +00:00

multi:: split_screen for standard shmup, not racing

This commit is contained in:
Zeno Rogue
2022-03-27 11:09:05 +02:00
parent 9a25da1989
commit fbb75309d0
2 changed files with 12 additions and 5 deletions

View File

@@ -5032,7 +5032,9 @@ EX void drawthemap() {
mapeditor::draw_dtshapes();
if(multi::players > 1 && !shmup::on) {
if(multi::centerplayer != -1)
if(multi::split_screen)
cwtV = multi::whereis[subscreens::current_player];
else if(multi::centerplayer != -1)
cwtV = multi::whereis[multi::centerplayer];
else {
hyperpoint h = Hypc;
@@ -5046,9 +5048,11 @@ EX void drawthemap() {
}
if(shmup::on) {
if(multi::players == 1)
if(multi::split_screen)
cwtV = shmup::pc[subscreens::current_player]->pat;
else if(multi::players == 1)
cwtV = shmup::pc[0]->pat;
else if(multi::centerplayer != -1)
else if(multi::centerplayer != -1)
cwtV = shmup::pc[multi::centerplayer]->pat;
else {
hyperpoint h = Hypc;