From 523ef5835f16ece38600b91f84936b7b0d2845a1 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 3 Feb 2016 08:45:55 -0500 Subject: bug fixess --- src/gameplay.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gameplay.cpp') diff --git a/src/gameplay.cpp b/src/gameplay.cpp index 724ca9c..bf37256 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -60,6 +60,19 @@ int commonAIFunc(NPC *speaker){ do{ if(!strcmp(exml->Name(),"text")){ if(exml->UnsignedAttribute("id") == (unsigned)speaker->dialogIndex){ + + /* + * Handle any quest tags + */ + + if((oxml = exml->FirstChildElement("quest"))){ + const char *qname; + while(oxml){ + if((qname = oxml->Attribute("assign"))) + player->qh.current.push_back((Quest){qname,"None",(struct item_t){0,0}}); + oxml = oxml->NextSiblingElement(); + } + } /* * Handle any 'give' requests. -- cgit v1.2.3