From 2e43b5572c85f0688351f907e210639676620ae8 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Mon, 8 Jun 2009 08:41:29 -0400 Subject: Try decreasing the look ahead distance for keyboard walking, seemed to helped a bit --- src/localplayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/localplayer.cpp') 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, -- cgit v1.2.3-60-g2f50