From 5050c0ca4f266c2bbfd5651f61256c6606253000 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 25 Dec 2007 11:56:11 +0000 Subject: compile fixes --- src/game/client/gc_client.cpp | 3 +++ src/game/client/gc_menu.cpp | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game') 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; -- cgit 1.4.1