about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2012-02-15 01:40:40 +0100
committeroy <Tom_Adams@web.de>2013-02-24 17:09:42 +0100
commite291a60e7e5c52e8a6d0117fd2ef3b38521cb81c (patch)
treeac4b5523c63e34aab5eb9168ba7d2dd017eb95a6 /src/game/client
parentb4ed006f836e8b15f27352a8403b7cdeb7576c5b (diff)
downloadzcatch-e291a60e7e5c52e8a6d0117fd2ef3b38521cb81c.tar.gz
zcatch-e291a60e7e5c52e8a6d0117fd2ef3b38521cb81c.zip
fixed map initialisation. Closes #64
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/render.cpp3
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;
 					}
 				}
 			}