summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-01-25 23:54:38 +0100
committerBertram <bertram@cegetel.net>2010-01-25 23:54:38 +0100
commite5423740f34a6c5be1df36c84e7ce5ea84bfda1e (patch)
tree9d74cfe4df04edc56c7b434a6895109090472615 /src/gui/viewport.h
parent79245e6be83e5b2a92177fc98f256791cdc1e09a (diff)
downloadMana-e5423740f34a6c5be1df36c84e7ce5ea84bfda1e.tar.gz
Mana-e5423740f34a6c5be1df36c84e7ce5ea84bfda1e.tar.bz2
Mana-e5423740f34a6c5be1df36c84e7ce5ea84bfda1e.tar.xz
Mana-e5423740f34a6c5be1df36c84e7ce5ea84bfda1e.zip
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.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r--src/gui/viewport.h5
1 files changed, 1 insertions, 4 deletions
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. */