diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-12-16 20:07:31 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-12-16 20:07:31 +0000 |
| commit | b31d63b4d8574be79c15030421becf4980978514 (patch) | |
| tree | 9a085432e33f3427bc62849514232a5ddaf5deda | |
| parent | 1ce97bddc535e3ee0fcb9ad11113c28bb1e25a65 (diff) | |
| download | zcatch-b31d63b4d8574be79c15030421becf4980978514.tar.gz zcatch-b31d63b4d8574be79c15030421becf4980978514.zip | |
fixed the tx==0 ty==0 bug
| -rw-r--r-- | src/game/server/gs_server.cpp | 4 |
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; + } } |