From cd727d2223bc51f282bec29d666a0f5f30bdd151 Mon Sep 17 00:00:00 2001 From: Bertram Date: Thu, 4 Mar 2010 15:04:14 +0100 Subject: Reviewed the LocalPlayer::nextTile() function. The ManaServ movement system is functional!! Introduced LocalPlayer::getNextWalkPosition(unsigned char dir) which takes care about the player next position while moving using keyboard. I removed the pixel scaler thing because it couldn't handle all the noticed cases and was rather heavy. There is still a bug in the movement system (nothing's perfect) but it's very rare and this is here in eAthena, too. So, I'll give a try at taking care of it once I'll have polished all of this a bit. Please try and give feedback!! --- src/localplayer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index c97bfc4b..65653d50 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -116,6 +116,12 @@ class LocalPlayer : public Player virtual void setAction(Action action, int attackType = 0); + /** + * Compute the next pathnode location when walking using keyboard. + * used by nextTile(). + */ + Position getNextWalkPosition(unsigned char dir); + /** * Adds a new tile to the path when walking. * @note Eathena -- cgit v1.2.3-70-g09d2