about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-16 19:39:04 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-16 19:39:04 +0000
commitdc72c367e42a339e5a8ec848bfa775a4e40d00d3 (patch)
tree9d0e3411a636fb2c3da433ed51f0233c8dc03b3a /src/game
parent1d84ae728f39f76db08e27aa7255f1fd44cea46a (diff)
downloadzcatch-dc72c367e42a339e5a8ec848bfa775a4e40d00d3.tar.gz
zcatch-dc72c367e42a339e5a8ec848bfa775a4e40d00d3.zip
tweaked the explosions abit
Diffstat (limited to 'src/game')
-rw-r--r--src/game/client/menu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/client/menu.cpp b/src/game/client/menu.cpp
index cc9b810b..eabe5352 100644
--- a/src/game/client/menu.cpp
+++ b/src/game/client/menu.cpp
@@ -943,12 +943,13 @@ void modmenu_init()
 	input::enable_char_cache();
 	input::enable_key_cache();
 
+	// TODO: should be removed
     current_font->font_texture = gfx_load_texture("data/big_font.png");
-
 	background_texture = gfx_load_texture("data/gui_bg.png");
 	gui_tileset_texture = gfx_load_texture("data/gui/gui_widgets.png");
     teewars_banner_texture = gfx_load_texture("data/gui_logo.png");
 
+	// TODO: should be removed
 	music_menu = snd_load_wav("data/audio/Music_Menu.wav");
 }
 
@@ -970,7 +971,7 @@ int modmenu_render(void *ptr)
 	netaddr4 *server_address = (netaddr4 *)ptr;	
 
     // handle mouse movement
-    float mx, my, mwx, mwy;
+    float mx, my;
     {
         int rx, ry;
         inp_mouse_relative(&rx, &ry);
@@ -984,8 +985,6 @@ int modmenu_render(void *ptr)
         // update the ui
         mx = (mouse_x/(float)gfx_screenwidth())*800.0f;
         my = (mouse_y/(float)gfx_screenheight())*600.0f;
-        mwx = mx*3.0f; // adjust to zoom and offset
-        mwy = mx*3.0f; // adjust to zoom and offset
             
         int buttons = 0;
         if(inp_key_pressed(input::mouse_1)) buttons |= 1;
@@ -999,6 +998,7 @@ int modmenu_render(void *ptr)
 	int r = menu_render(server_address);
 
     // render butt ugly mouse cursor
+    // TODO: render nice cursor
     gfx_texture_set(-1);
     gfx_quads_begin();
     gfx_quads_setcolor(0,0,0,1);