diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-29 13:21:33 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-29 13:21:33 +0000 |
| commit | e6c4db94d81306fda59b8fb32ae07fb3f0c8bf08 (patch) | |
| tree | d5f713cb83ea7e56223460df06531269d1a26684 /src/game/client | |
| parent | 25c0ffb4f4b34758a4dddb7ff4a1cada1bb07136 (diff) | |
| download | zcatch-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.cpp | 1 | ||||
| -rw-r--r-- | src/game/client/mapres_tilemap.cpp | 8 |
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; } |