1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-28 08:03:18 +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) { else if(I.type == diItem || I.type == diBigItem) {
bool xthis = (mousey >= top && mousey < tothei); 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); xthis = xthis && (mousex >= dcenter - dialogwidth/2 && mousex <= dcenter + dialogwidth/2);
#if ISMOBILE #if ISMOBILE
if(xthis && mousepressed) if(xthis && mousepressed)