mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed map initialisation. Closes #64
This commit is contained in:
parent
b0bf7115c9
commit
bbfb6e5992
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue