diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-06-08 08:41:29 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-06-08 08:41:29 -0400 |
commit | 2e43b5572c85f0688351f907e210639676620ae8 (patch) | |
tree | ef8f3662f2eb1e2c4b4085ba00dd88c8dc594816 | |
parent | 9de901049618ea4c75e9f2d2d3d118976fa62a76 (diff) | |
download | Mana-2e43b5572c85f0688351f907e210639676620ae8.tar.gz Mana-2e43b5572c85f0688351f907e210639676620ae8.tar.bz2 Mana-2e43b5572c85f0688351f907e210639676620ae8.tar.xz Mana-2e43b5572c85f0688351f907e210639676620ae8.zip |
Try decreasing the look ahead distance for keyboard walking, seemed to helped a bit
-rw-r--r-- | src/localplayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 782a461a..2f8761e7 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -440,9 +440,9 @@ void LocalPlayer::walk(unsigned char dir) int dScaler; // Distance to walk - // Checks our path up to 2 tiles, if a blocking tile is found + // Checks our path up to 1 tiles, if a blocking tile is found // We go to the last good tile, and break out of the loop - for (dScaler = 1; dScaler <= 2; dScaler++) + for (dScaler = 1; dScaler <= 1; dScaler++) { if ( (dx || dy) && !mMap->getWalk( ((int) pos.x + (dx * dScaler)) / 32, |