mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[7114] Code cleanups.
Remove redundant `inline` for in-class function definitions. Fixed float -> int implicit casts.
This commit is contained in:
parent
9fba64aeae
commit
9e590f7ceb
22 changed files with 82 additions and 83 deletions
|
|
@ -46,7 +46,7 @@ class MANGOS_DLL_SPEC PathMovementBase
|
|||
PathMovementBase() : i_currentNode(0) {}
|
||||
virtual ~PathMovementBase() {};
|
||||
|
||||
inline bool MovementInProgress(void) const { return i_currentNode < i_path.Size(); }
|
||||
bool MovementInProgress(void) const { return i_currentNode < i_path.Size(); }
|
||||
|
||||
// template pattern, not defined .. override required
|
||||
void LoadPath(T &);
|
||||
|
|
@ -135,7 +135,7 @@ public PathMovementBase<Player>
|
|||
|
||||
Path& GetPath() { return i_path; }
|
||||
uint32 GetPathAtMapEnd() const;
|
||||
inline bool HasArrived() const { return (i_currentNode >= i_path.Size()); }
|
||||
bool HasArrived() const { return (i_currentNode >= i_path.Size()); }
|
||||
void SetCurrentNodeAfterTeleport();
|
||||
void SkipCurrentNode() { ++i_currentNode; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue