fixed map initialisation. Closes #64

This commit is contained in:
oy 2012-02-15 01:40:40 +01:00
parent b0bf7115c9
commit bbfb6e5992

View file

@ -314,7 +314,7 @@ void CRenderTools::RenderTilemapGenerateSkip(class CLayers *pLayers)
CTile *pTiles = (CTile *)pLayers->Map()->GetData(pTmap->m_Data);
for(int y = 0; y < pTmap->m_Height; y++)
{
for(int x = 1; x < pTmap->m_Width; x++)
for(int x = 1; x < pTmap->m_Width;)
{
int sx;
for(sx = 1; x+sx < pTmap->m_Width && sx < 255; sx++)
@ -324,6 +324,7 @@ void CRenderTools::RenderTilemapGenerateSkip(class CLayers *pLayers)
}
pTiles[y*pTmap->m_Width+x].m_Skip = sx-1;
x += sx;
}
}
}