about summary refs log tree commit diff
path: root/src/game/server/gs_server.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-16 20:07:31 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-16 20:07:31 +0000
commitb31d63b4d8574be79c15030421becf4980978514 (patch)
tree9a085432e33f3427bc62849514232a5ddaf5deda /src/game/server/gs_server.cpp
parent1ce97bddc535e3ee0fcb9ad11113c28bb1e25a65 (diff)
downloadzcatch-b31d63b4d8574be79c15030421becf4980978514.tar.gz
zcatch-b31d63b4d8574be79c15030421becf4980978514.zip
fixed the tx==0 ty==0 bug
Diffstat (limited to 'src/game/server/gs_server.cpp')
-rw-r--r--src/game/server/gs_server.cpp4
1 files changed, 4 insertions, 0 deletions
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;
+			
 	}
 }