diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-05-29 19:53:14 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-05-29 19:53:14 -0400 |
commit | b30faa4c18fbbf804104e07c9d295bebf7d815ce (patch) | |
tree | 5a611e4baeb4704d109b48e13d6116143fb62a86 /src/localplayer.cpp | |
parent | ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd (diff) | |
download | mana-b30faa4c18fbbf804104e07c9d295bebf7d815ce.tar.gz mana-b30faa4c18fbbf804104e07c9d295bebf7d815ce.tar.bz2 mana-b30faa4c18fbbf804104e07c9d295bebf7d815ce.tar.xz mana-b30faa4c18fbbf804104e07c9d295bebf7d815ce.zip |
Some movement fixes for TMWServ build.
Looked pretty good so I removed annoying debug information.
Also should note that movement between two players is still off.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 9cdf0bf8..782a461a 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -71,7 +71,10 @@ #include <cassert> #ifdef TMWSERV_SUPPORT -const short walkingKeyboardDelay = 100; +// This is shorter then it really needs to be for normal use +// But if we ever wanted to increase player speed, having this lower +// Won't hurt +const short walkingKeyboardDelay = 40; #endif LocalPlayer *player_node = NULL; @@ -437,9 +440,9 @@ void LocalPlayer::walk(unsigned char dir) int dScaler; // Distance to walk - // Checks our path up to 5 tiles, if a blocking tile is found + // Checks our path up to 2 tiles, if a blocking tile is found // We go to the last good tile, and break out of the loop - for (dScaler = 1; dScaler <= 10; dScaler++) + for (dScaler = 1; dScaler <= 2; dScaler++) { if ( (dx || dy) && !mMap->getWalk( ((int) pos.x + (dx * dScaler)) / 32, |