about summary refs log tree commit diff
path: root/src/game/client/render_map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/render_map.cpp')
-rw-r--r--src/game/client/render_map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/client/render_map.cpp b/src/game/client/render_map.cpp
index 0354b9d5..2d0875ca 100644
--- a/src/game/client/render_map.cpp
+++ b/src/game/client/render_map.cpp
@@ -241,8 +241,8 @@ void CRenderTools::RenderTilemap(CTile *pTiles, int w, int h, float Scale, vec4
 					int ty = Index/16;
 					int Px0 = tx*(1024/16);
 					int Py0 = ty*(1024/16);
-					int Px1 = (tx+1)*(1024/16)-1;
-					int Py1 = (ty+1)*(1024/16)-1;
+					int Px1 = Px0+(1024/16)-1;
+					int Py1 = Py0+(1024/16)-1;
 					
 					float u0 = Nudge + Px0/TexSize+Frac;
 					float v0 = Nudge + Py0/TexSize+Frac;