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 2118022..91fa279 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -892,6 +892,7 @@ DONE:
setFontSize(16);
toggleBlack();
}
+
dialogBoxExists = false;
}
void handleEvents(void){
@@ -914,12 +915,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