Fix SetCurrentWP to allow negatives

Needed to make new roambox constants (that were used instead of 666) actually work.
This commit is contained in:
Paul Coene 2019-04-03 15:56:12 -04:00 committed by GitHub
parent 0852468b88
commit 5e008a5a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1091,7 +1091,7 @@ public:
inline glm::vec4 GetCurrentWayPoint() const { return m_CurrentWayPoint; }
inline float GetCWPP() const { return(static_cast<float>(cur_wp_pause)); }
inline int GetCWP() const { return(cur_wp); }
void SetCurrentWP(uint16 waypoint) { cur_wp = waypoint; }
void SetCurrentWP(int waypoint) { cur_wp = waypoint; }
virtual FACTION_VALUE GetReverseFactionCon(Mob* iOther) { return FACTION_INDIFFERENT; }
virtual const bool IsUnderwaterOnly() const { return false; }