aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 1520e9f..28b8314 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -806,6 +806,7 @@ DONE:
setFontSize(16);
toggleBlack();
}
+
dialogBoxExists = false;
}
void handleEvents(void){
@@ -828,12 +829,10 @@ DONE:
premouse.y=e.motion.y;
break;
case SDL_MOUSEBUTTONDOWN:
- if((e.button.button&SDL_BUTTON_RIGHT)&&dialogBoxExists){
+ if((e.button.button & SDL_BUTTON_RIGHT) && dialogBoxExists)
dialogAdvance();
- }
- if((e.button.button&SDL_BUTTON_LEFT)&&!dialogBoxExists){
+ if((e.button.button & SDL_BUTTON_LEFT) && !dialogBoxExists)
player->inv->usingi = true;
- }
break;
/*
KEYDOWN