1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 06:03:23 +00:00

fixed a flag bug

This commit is contained in:
Zeno Rogue 2018-01-05 17:29:26 +01:00
parent 0dd5ed1505
commit 5a183618db

View File

@ -310,7 +310,7 @@ namespace dialog {
}
else if(I.type == diItem || I.type == diBigItem) {
bool xthis = (mousey >= top && mousey < tothei);
if(cmode && sm::DIALOG_STRICT_X)
if(cmode & sm::DIALOG_STRICT_X)
xthis = xthis && (mousex >= dcenter - dialogwidth/2 && mousex <= dcenter + dialogwidth/2);
#if ISMOBILE
if(xthis && mousepressed)