Store talk node type in scenario file as enumerator instead of numer

- Also, don't write empty CDATA sections when dialogue name/look/job sections are completely empty.
This commit is contained in:
2015-07-05 23:30:43 -04:00
parent 6cc9e81a7b
commit 7b76d37237
7 changed files with 32 additions and 11 deletions

View File

@@ -1789,9 +1789,7 @@ static void readDialogueFromXml(ticpp::Document&& data, cSpeech& talk, int town_
else throw xBadNode(type, node->Row(), node->Column(), fname);
num_keys++;
} else if(type == "type") {
int type;
node->GetText(&type);
talk.talk_nodes[num_nodes].type = eTalkNode(type);
node->GetText(&talk.talk_nodes[num_nodes].type);
got_type = true;
} else if(type == "param") {
if(num_params >= 4)