mirror of https://github.com/axmolengine/axmol.git
Merge pull request #1322 from NatWeiss/fixtmxparser2
Fixes a bug in the TMX parser which caused tileset images not to load.
This commit is contained in:
commit
7e123f3aec
|
@ -453,7 +453,7 @@ void CCTMXMapInfo::startElement(void *ctx, const char *name, const char **atts)
|
|||
}
|
||||
else
|
||||
{
|
||||
tileset->m_sSourceImage = m_sResources + "/" + imagename;
|
||||
tileset->m_sSourceImage = m_sResources + (m_sResources.size() ? "/" : "") + imagename;
|
||||
}
|
||||
}
|
||||
else if(elementName == "data")
|
||||
|
|
Loading…
Reference in New Issue