1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed the quick mouse OFF

This commit is contained in:
Zeno Rogue 2017-08-18 03:24:15 +02:00
parent e4d242c22c
commit a47000e608

View File

@ -603,7 +603,7 @@ void mainloopiter() {
bool rollchange = (cmode & sm::OVERVIEW) && getcstat >= 2000 && cheater; bool rollchange = (cmode & sm::OVERVIEW) && getcstat >= 2000 && cheater;
if(ev.type == SDL_MOUSEBUTTONDOWN) { if(ev.type == SDL_MOUSEBUTTONDOWN || ev.type == SDL_MOUSEBUTTONUP) {
mousepressed = ev.type == SDL_MOUSEBUTTONDOWN; mousepressed = ev.type == SDL_MOUSEBUTTONDOWN;
if(mousepressed) flashMessages(); if(mousepressed) flashMessages();
mousing = true; mousing = true;