if(Size >= pTMap->m_Width*pTMap->m_Height*sizeof(CTile))
size
?width*height*sizeof(tile)
according to the source (edited)300 * 150 * sizeof(tile)
is checked against Size
, so that variable is also interestingGetDataSize
returns the actual size of the data, while in vanilla it's the (compressed) data size in the file
2) 0.7 has tile-skip for better map compression. when the map is loaded, the tile layers are unpacked and the data in the datafile is replaced, but the size is not updated