1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-01 18:09:04 +00:00

fixed the mouse control with accepting

This commit is contained in:
Zeno Rogue
2025-12-18 03:52:09 +01:00
parent 5dd7cfe52d
commit 2892d774e1

View File

@@ -1212,14 +1212,16 @@ EX void handleInput(int delta, config &scfg) {
else if(!mouseout()) {
for(int d=0; d<playerpos(i)->type; d++) {
cdir = d;
if(multi::multiPlayerTarget(i) == c) break;
if(multi::multiPlayerTarget(i) == c) {
multi::accepted[i] = true;
cwt = multi::player[i];
calcMousedest();
auto& sd = multi::whereto[i].subdir;
sd = mousedest.subdir;
if(sd == 0) sd = 1;
break;
}
cdir = scdir;
cwt = multi::player[i];
calcMousedest();
auto& sd = multi::whereto[i].subdir;
sd = mousedest.subdir;
if(sd == 0) sd = 1;
multi::accepted[i] = true;
}
}
}