about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-25 11:56:11 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-25 11:56:11 +0000
commit5050c0ca4f266c2bbfd5651f61256c6606253000 (patch)
tree16553678c4369b62d9496d188483e07c49ded29d /src/game
parentcd6d5e6237acf659d75fa64568506c152ce41ec9 (diff)
downloadzcatch-5050c0ca4f266c2bbfd5651f61256c6606253000.tar.gz
zcatch-5050c0ca4f266c2bbfd5651f61256c6606253000.zip
compile fixes
Diffstat (limited to 'src/game')
-rw-r--r--src/game/client/gc_client.cpp3
-rw-r--r--src/game/client/gc_menu.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/game/client/gc_client.cpp b/src/game/client/gc_client.cpp
index 275370e6..817638b0 100644
--- a/src/game/client/gc_client.cpp
+++ b/src/game/client/gc_client.cpp
@@ -3066,6 +3066,9 @@ extern "C" int modc_snap_input(int *data)
 	{
 		input_data.target_x = (int)mouse_pos.x;
 		input_data.target_y = (int)mouse_pos.y;
+		
+		if(!input_data.target_x && !input_data.target_y)
+			input_data.target_y = 1;
 	}
 	input_target_lock = 0;
 
diff --git a/src/game/client/gc_menu.cpp b/src/game/client/gc_menu.cpp
index 232679e9..377f8f2b 100644
--- a/src/game/client/gc_menu.cpp
+++ b/src/game/client/gc_menu.cpp
@@ -1848,8 +1848,6 @@ void menu_do_connected()
 
 void menu_init()
 {
-    int i;
-
 	if(config.cl_show_welcome)
 		popup = POPUP_FIRST_LAUNCH;
 	config.cl_show_welcome = 0;