1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-14 09:26:52 +00:00

auto-pause game when it loses focus

This commit is contained in:
Zeno Rogue 2024-04-08 00:45:20 +02:00
parent 0323e4100e
commit 521b452436

View File

@ -2590,7 +2590,7 @@ EX void turn(int delta) {
lmousetarget = mousetarget; lmousetarget = mousetarget;
if(!shmup::on) return; if(!shmup::on) return;
if(!(cmode & sm::NORMAL)) { if(!(cmode & sm::NORMAL) || outoffocus) {
#if CAP_RACING #if CAP_RACING
if(!in_pause) { if(!in_pause) {
in_pause = true; in_pause = true;