Fix autowalk sometimes not being canceled

This commit is contained in:
Eduardo Bart
2013-01-31 00:50:20 -02:00
parent 1bf77c35c6
commit 654f71e75f
3 changed files with 21 additions and 17 deletions

View File

@@ -93,7 +93,8 @@ public:
bool hasSight(const Position& pos);
bool isKnown() { return m_known; }
bool isPreWalking() { return m_preWalking; }
bool isAutoWalking() { return m_autoWalking; }
bool isAutoWalking() { return m_autoWalkDestination.isValid(); }
bool isServerWalking() { return m_serverWalking; }
bool isPremium() { return m_premium; }
bool isPendingGame() { return m_pending; }
@@ -122,13 +123,13 @@ private:
Position m_lastPrewalkDestination;
Position m_autoWalkDestination;
Position m_lastAutoWalkPosition;
ScheduledEventPtr m_autoWalkEndEvent;
ScheduledEventPtr m_serverWalkEndEvent;
ScheduledEventPtr m_autoWalkContinueEvent;
ticks_t m_walkLockExpiration;
int m_lastWalkPing;
stdext::boolean<false> m_preWalking;
stdext::boolean<true> m_lastPrewalkDone;
stdext::boolean<false> m_autoWalking;
stdext::boolean<false> m_serverWalking;
stdext::boolean<false> m_waitingWalkPong;
stdext::boolean<false> m_knownCompletePath;