diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-07-01 22:57:29 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-11 02:34:03 +0200 |
commit | ebc1db2172d3dc1e954647fc21e80f074e6cda4b (patch) | |
tree | 4aa020517c83eb1e625b289cb20135d890f5af6e /src/net/tmwa/playerhandler.h | |
parent | 5c5e17c0b200004c6d18a51e2c02fd21d710f04f (diff) | |
download | mana-client-ebc1db2172d3dc1e954647fc21e80f074e6cda4b.tar.gz mana-client-ebc1db2172d3dc1e954647fc21e80f074e6cda4b.tar.bz2 mana-client-ebc1db2172d3dc1e954647fc21e80f074e6cda4b.tar.xz mana-client-ebc1db2172d3dc1e954647fc21e80f074e6cda4b.zip |
Made the delay between to keyboard move calls functional.
It has been fixed and be made adapted
to the being movement speed.
Now, for instance, the client sends 3x times less move calls
to the tA server, and roughly 20x times for the Manaserv's one.
Resolves: Mana-Mantis #346.
Diffstat (limited to 'src/net/tmwa/playerhandler.h')
-rw-r--r-- | src/net/tmwa/playerhandler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h index 63812f47..3e22be22 100644 --- a/src/net/tmwa/playerhandler.h +++ b/src/net/tmwa/playerhandler.h @@ -62,6 +62,8 @@ class PlayerHandler : public MessageHandler, public Net::PlayerHandler Vector getPixelsPerTickMoveSpeed(const Vector &speed, Map *map = 0); + int getKeyboardMoveDelay(const Vector& speed); + bool usePixelPrecision() { return false; } }; |