about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-29 13:21:33 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-29 13:21:33 +0000
commite6c4db94d81306fda59b8fb32ae07fb3f0c8bf08 (patch)
treed5f713cb83ea7e56223460df06531269d1a26684 /src/game/client
parent25c0ffb4f4b34758a4dddb7ff4a1cada1bb07136 (diff)
downloadzcatch-e6c4db94d81306fda59b8fb32ae07fb3f0c8bf08.tar.gz
zcatch-e6c4db94d81306fda59b8fb32ae07fb3f0c8bf08.zip
fixed some problems with the snapshot handling. added fps meter. fixed error when connecting to several servers
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/game_client.cpp1
-rw-r--r--src/game/client/mapres_tilemap.cpp8
2 files changed, 7 insertions, 2 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp
index eef3e692..365205a4 100644
--- a/src/game/client/game_client.cpp
+++ b/src/game/client/game_client.cpp
@@ -1205,6 +1205,7 @@ void modc_render()
 	{
 		menu_active = !menu_active;
 	}
+	
 	if (!menu_active)
 	{
 		if(inp_key_down(input::enter))
diff --git a/src/game/client/mapres_tilemap.cpp b/src/game/client/mapres_tilemap.cpp
index f1f29d8f..3b2a5006 100644
--- a/src/game/client/mapres_tilemap.cpp
+++ b/src/game/client/mapres_tilemap.cpp
@@ -5,12 +5,16 @@
 
 #include <baselib/opengl.h>
 
-bool must_init = true;
 void *batches[32] = {0};
 
 int tilemap_init()
 {
-	must_init = true;
+	for(int i = 0; i < 32; i++)
+		if(batches[i])
+		{
+			gfx_destoy_batch(batches[i]);
+			batches[i] = 0;
+		}
 	return 0;
 }