diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/entities.cpp | 3 | ||||
-rw-r--r-- | src/ui.cpp | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index e49d0ca..53d3aca 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -711,7 +711,7 @@ COMMONAIFUNC: goto COMMONAIFUNC; } } - } while((oxml = oxml->NextSiblingElement())); + } while((oxml = oxml->NextSiblingElement("quest"))); } // handle give tags @@ -743,6 +743,7 @@ COMMONAIFUNC: } // asdlfkj + auto txml = exml->FirstChildElement("content"); if (txml == nullptr) goto OTHERSTUFF; @@ -1,5 +1,6 @@ #include <ui.hpp> +#include <ui_quest.hpp> #include <brice.hpp> #include <world.hpp> #include <gametime.hpp> @@ -909,6 +910,9 @@ namespace ui { // will return if not toggled action::draw(vec2 {player->loc.x + player->width / 2, player->loc.y + player->height + game::HLINE}); + // will return if not toggled + quest::draw(); + if (pageTexReady) { GLfloat page_loc[] = {offset.x - 300, SCREEN_HEIGHT - 100, -6.0, @@ -1540,6 +1544,8 @@ EXIT: currentWorld->addObject(item->name, "o shit waddup", player->loc.x + player->width / 2, player->loc.y + player->height / 2); } + } else if (SDL_KEY == SDLK_h) { + quest::toggle(); } else switch (SDL_KEY) { case SDLK_F3: debug ^= true; |