From b31d63b4d8574be79c15030421becf4980978514 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 16 Dec 2007 20:07:31 +0000 Subject: fixed the tx==0 ty==0 bug --- src/game/server/gs_server.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/server/gs_server.cpp b/src/game/server/gs_server.cpp index a34766f3..524b8dfc 100644 --- a/src/game/server/gs_server.cpp +++ b/src/game/server/gs_server.cpp @@ -1704,6 +1704,10 @@ void mods_client_input(int client_id, void *input) //players[client_id].previnput = players[client_id].input; players[client_id].input = *(player_input*)input; players[client_id].num_inputs++; + + if(players[client_id].input.target_x == 0 && players[client_id].input.target_y == 0) + players[client_id].input.target_y = -1; + } } -- cgit 1.4.1