diff options
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r-- | src/gameplay.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp index b8e51dc..7730cf6 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -145,14 +145,17 @@ int commonAIFunc(NPC *speaker){ speaker->dialogIndex = idx; if(exml->QueryBoolAttribute("stop",&stop) == XML_NO_ERROR && stop){ - speaker->dialogIndex = -1; + speaker->dialogIndex = 9999; return 0; }else if(exml->QueryBoolAttribute("pause",&stop) == XML_NO_ERROR && stop){ - speaker->dialogIndex = -1; + speaker->dialogIndex = 9999; return 1; }else return commonAIFunc(speaker); + }else{ + speaker->dialogIndex = 9999; + return 0; } - return 0; + return 1; } } |