diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-26 19:21:12 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-26 19:21:12 +0000 |
| commit | bdfe8e62551fdc66856d1942b1264f9ff4f51004 (patch) | |
| tree | 4fec13de8dd94a1a9ab6be1a5a2492fa12e4d0c5 /src | |
| parent | b265244a3ec70852995dc82a41dffb52f57c84e3 (diff) | |
| download | zcatch-bdfe8e62551fdc66856d1942b1264f9ff4f51004.tar.gz zcatch-bdfe8e62551fdc66856d1942b1264f9ff4f51004.zip | |
added the border on the tilemap again
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/client/mapres_tilemap.cpp | 6 |
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; |