diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-01-10 11:50:31 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-01-10 11:50:31 +0000 |
| commit | c79402d07539ac95c4d6ceb6defedf69dbf91709 (patch) | |
| tree | b4f8a38b061367f8090f822f68b90db07d5f6fc6 /src/game/client/components/controls.cpp | |
| parent | 6eefa58b52c4d842aff576e0674b58949f8ad2d7 (diff) | |
| download | zcatch-c79402d07539ac95c4d6ceb6defedf69dbf91709.tar.gz zcatch-c79402d07539ac95c4d6ceb6defedf69dbf91709.zip | |
increased input snapping rate from 5hz to 10hz inorder to predict the network latency better
Diffstat (limited to 'src/game/client/components/controls.cpp')
| -rw-r--r-- | src/game/client/components/controls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp index 12eabdd0..63a081eb 100644 --- a/src/game/client/components/controls.cpp +++ b/src/game/client/components/controls.cpp @@ -142,7 +142,7 @@ int CONTROLS::snapinput(int *data) else if(input_data.next_weapon != last_data.next_weapon) send = true; else if(input_data.prev_weapon != last_data.prev_weapon) send = true; - if(time_get() > last_send_time + time_freq()/5) + if(time_get() > last_send_time + time_freq()/10) send = true; last_data = input_data; |