mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 06:27:17 +00:00
auto-pause game when it loses focus
This commit is contained in:
parent
0323e4100e
commit
521b452436
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user