From e5423740f34a6c5be1df36c84e7ce5ea84bfda1e Mon Sep 17 00:00:00 2001 From: Bertram Date: Mon, 25 Jan 2010 23:54:38 +0100 Subject: Finished Freeyorp's ViewPort bug fixing commit: http://gitorious.org/mana/mana/commit/58149dca937410826971f99b72e304121e61abb7 by merging ViewPort::mLocalWalkTime and ::mLocalWalktime into the first one, removing ifdefs, and making sure the setDestination() calls aren't done each ticks by setting the mLocalWalkTime equal to player->mWalkTime while Mouse Left Dragging, I also set it back to -1 when stop walking to avoid the bug where you have to start walking using the keyboard before being able to walk dragging the mouse under eAthena. --- src/gui/viewport.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/gui/viewport.h') diff --git a/src/gui/viewport.h b/src/gui/viewport.h index d3a86f1d..4b12bcc6 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -177,11 +177,8 @@ class Viewport : public WindowContainer, public gcn::MouseListener, bool mVisibleNames; /**< Show target names. */ bool mPlayerFollowMouse; -#ifdef MANASERV_SUPPORT + int mLocalWalkTime; /**< Timestamp before the next walk can be sent. */ -#else - int mWalkTime; -#endif PopupMenu *mPopupMenu; /**< Popup menu. */ Being *mSelectedBeing; /**< Current selected being. */ -- cgit v1.2.3-70-g09d2