1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 18:27:55 +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;
if(!shmup::on) return;
if(!(cmode & sm::NORMAL)) {
if(!(cmode & sm::NORMAL) || outoffocus) {
#if CAP_RACING
if(!in_pause) {
in_pause = true;