about summary refs log tree commit diff
path: root/src/game/client/mapres_tilemap.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-26 19:21:12 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-26 19:21:12 +0000
commitbdfe8e62551fdc66856d1942b1264f9ff4f51004 (patch)
tree4fec13de8dd94a1a9ab6be1a5a2492fa12e4d0c5 /src/game/client/mapres_tilemap.cpp
parentb265244a3ec70852995dc82a41dffb52f57c84e3 (diff)
downloadzcatch-bdfe8e62551fdc66856d1942b1264f9ff4f51004.tar.gz
zcatch-bdfe8e62551fdc66856d1942b1264f9ff4f51004.zip
added the border on the tilemap again
Diffstat (limited to 'src/game/client/mapres_tilemap.cpp')
-rw-r--r--src/game/client/mapres_tilemap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/client/mapres_tilemap.cpp b/src/game/client/mapres_tilemap.cpp
index bc7cbe6d..f1f29d8f 100644
--- a/src/game/client/mapres_tilemap.cpp
+++ b/src/game/client/mapres_tilemap.cpp
@@ -47,9 +47,9 @@ void tilemap_render(float scale, int fg)
 				float frac = (1.0f/1024.0f);//2.0f; //2.0f;
 				float texsize = 1024.0f;
 				float nudge = 0.5f/texsize;
-				
-				for(int y = 0; y < tmap->height; y++)
-					for(int x = 0; x < tmap->width; x++)
+				int border = 24;
+				for(int y = -border; y < tmap->height+border; y++)
+					for(int x = -border; x < tmap->width+border; x++)
 					{
 						int mx = x;
 						int my = y;