about summary refs log tree commit diff
path: root/src/game/client/components/maplayers.cpp
diff options
context:
space:
mode:
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);
 }