diff options
| author | oy <Tom_Adams@web.de> | 2012-02-15 01:40:40 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2013-02-24 17:09:42 +0100 |
| commit | e291a60e7e5c52e8a6d0117fd2ef3b38521cb81c (patch) | |
| tree | ac4b5523c63e34aab5eb9168ba7d2dd017eb95a6 /src/game/client/render.cpp | |
| parent | b4ed006f836e8b15f27352a8403b7cdeb7576c5b (diff) | |
| download | zcatch-e291a60e7e5c52e8a6d0117fd2ef3b38521cb81c.tar.gz zcatch-e291a60e7e5c52e8a6d0117fd2ef3b38521cb81c.zip | |
fixed map initialisation. Closes #64
Diffstat (limited to 'src/game/client/render.cpp')
| -rw-r--r-- | src/game/client/render.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/client/render.cpp b/src/game/client/render.cpp index 278ed51a..71589191 100644 --- a/src/game/client/render.cpp +++ b/src/game/client/render.cpp @@ -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; } } } |