aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-02-03 08:45:55 -0500
committerClyne Sullivan <tullivan99@gmail.com>2016-02-03 08:45:55 -0500
commit523ef5835f16ece38600b91f84936b7b0d2845a1 (patch)
treec89d50276c494f5885b3d0e913f1dd4809958402 /src/gameplay.cpp
parent7ab072caaaec09720ad79cfed5738e89bc60c44f (diff)
bug fixess
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp13
1 files changed, 13 insertions, 0 deletions
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.