Skip to content

Commit

Permalink
Fix SetCurrentWP to allow negatives
Browse files Browse the repository at this point in the history
Needed to make new roambox constants (that were used instead of 666) actually work.
  • Loading branch information
Paul Coene authored Apr 3, 2019
1 parent 0852468 commit 5e008a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zone/mob.h
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ class Mob : public Entity {
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; }
Expand Down

0 comments on commit 5e008a5

Please sign in to comment.