Allow reparsing partial tiles when we have new tiles

When parsing a tile, we request resources from the network, like
sprites and glyphs.

In the rare case of the resources arriving before the tile is
parsed for the first time, if we don't mark it for being parsed
again, it can end up with a tile eternally stuck in the partial
state.
This commit is contained in:
Thiago Marcos P. Santos
2015-05-08 19:21:50 +03:00
parent 3f445e8578
commit 4e7c97466c
4 changed files with 12 additions and 8 deletions

View File

@@ -101,7 +101,11 @@ void ResourceLoader::onSourceLoaded() {
emitTileDataChanged();
}
void ResourceLoader::onTileLoaded() {
void ResourceLoader::onTileLoaded(bool isNewTile) {
if (isNewTile) {
shouldReparsePartialTiles_ = true;
}
emitTileDataChanged();
}