aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-11-13 08:28:43 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-11-13 08:28:43 -0500
commita32339dc700759ab44a360953c9c24d009b11ecc (patch)
treebf351f2b495403f523a82824a9bc8317b5da81ec /main.cpp
parent613ab3be6ee76595c04b89992e62c41b52bc1a2f (diff)
parent1177a2ec843533b76fa9bd8573686f684103075c (diff)
Added object class, and added quest listing
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index aa77fc2..61aa3ae 100644
--- a/main.cpp
+++ b/main.cpp
@@ -549,7 +549,9 @@ void mainLoop(void){
}else if(!(debugDiv%10)){
debugY = player->loc.y;
}
+
render(); // Call the render loop
+
}
extern bool fadeEnable;
@@ -1041,8 +1043,10 @@ void logic(){
if(SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(SDL_BUTTON_RIGHT)){
- n->interact();
- Mix_PlayChannel( -1, horn, 0); // Audio feedback
+ if(!ui::dialogBoxExists){
+ n->interact();
+ Mix_PlayChannel( -1, horn, 0); // Audio feedback
+ }
}
}