We no longer read invalid tags or lone tags.

pull/28/head
sigonasr2 1 year ago
parent 635f580ba6
commit 89473d417c
  1. 6
      Crawler/TMXParser.h
  2. 2
      Crawler/Version.h

@ -163,6 +163,12 @@ public:
if (data[0]=='<') {
//Beginning of XML tag.
accumulator=data;
if(accumulator.length()>1&&accumulator.at(1)=='/'){
accumulator=""; //Restart because this is an end tag.
}
if(accumulator.length()>1&&accumulator.find('>')!=std::string::npos){
accumulator=""; //Restart because this tag has nothing in it!
}
} else {
//Start reading in data for this layer.
std::vector<int>rowData;

@ -2,7 +2,7 @@
#define VERSION_MAJOR 0
#define VERSION_MINOR 2
#define VERSION_PATCH 0
#define VERSION_BUILD 98
#define VERSION_BUILD 100
#define stringify(a) stringify_(a)
#define stringify_(a) #a

Loading…
Cancel
Save