From 5c2179bc9afa809fa3b915bea0d75f62f90f0644 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 15 Oct 2015 09:07:06 -0400 Subject: quest fixes --- src/ui.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/ui.cpp') diff --git a/src/ui.cpp b/src/ui.cpp index fe5414c..8e80341 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -8,6 +8,8 @@ extern Player *player; // 'player' should be (must be) defined in main.cpp extern World *currentWorld; // should/must also be defined in main.cpp +extern std::vectornpc; + static FT_Library ftl; // Variables for the FreeType library and stuff static FT_Face ftf; static GLuint ftex; @@ -84,7 +86,7 @@ namespace ui { h=ftf->glyph->bitmap.rows; glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D,ftex); - switch(c){ + switch(c){ // Some characters are not properly spaced, make them so here case '^': case '*': case '`': @@ -242,5 +244,13 @@ namespace ui { break; } } + static bool once=false; + unsigned int i; + if(!dialogBoxExists&&!once){ + for(i=0;i