about summary refs log tree commit diff
path: root/src/game/client/components/maplayers.cpp
diff options
context:
space:
mode:
authorAlfred Eriksson <somerunce@gmail.com>2009-01-12 14:43:39 +0000
committerAlfred Eriksson <somerunce@gmail.com>2009-01-12 14:43:39 +0000
commit783cc0d2b7db621af8c0060ef525ca20e30ea4be (patch)
tree6a5fdb9d5b0c383306c78fb3b704f39068877732 /src/game/client/components/maplayers.cpp
parent5141ddac4dec0848ccad716d2cd7a7eb2991744a (diff)
downloadzcatch-783cc0d2b7db621af8c0060ef525ca20e30ea4be.tar.gz
zcatch-783cc0d2b7db621af8c0060ef525ca20e30ea4be.zip
fixed #625
Diffstat (limited to 'src/game/client/components/maplayers.cpp')
-rw-r--r--src/game/client/components/maplayers.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/client/components/maplayers.cpp b/src/game/client/components/maplayers.cpp
index b18685f9..9f46f4af 100644
--- a/src/game/client/components/maplayers.cpp
+++ b/src/game/client/components/maplayers.cpp
@@ -53,6 +53,9 @@ void MAPLAYERS::on_render()
 	if(client_state() != CLIENTSTATE_ONLINE && client_state() != CLIENTSTATE_DEMOPLAYBACK)
 		return;
 	
+	RECT screen;
+	gfx_getscreen(&screen.x, &screen.y, &screen.w, &screen.h);
+	
 	vec2 center = gameclient.camera->center;
 	//float center_x = gameclient.camera->center.x;
 	//float center_y = gameclient.camera->center.y;
@@ -153,5 +156,8 @@ void MAPLAYERS::on_render()
 	
 	if(!config.gfx_noclip)
 		gfx_clip_disable();
+	
+	// reset the screen like it was before
+	gfx_mapscreen(screen.x, screen.y, screen.w, screen.h);
 }