mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
d3214a0 follow-up for code style.
This commit is contained in:
@@ -142,10 +142,12 @@ SplineChainResumeInfo SplineChainMovementGenerator::GetResumeInfo(Unit const* me
|
||||
/* static */ void SplineChainMovementGenerator::GetResumeInfo(Unit const* me, SplineChainResumeInfo& info)
|
||||
{
|
||||
if (MovementGenerator const* activeGen = me->GetMotionMaster()->GetMotionSlot(MOTION_SLOT_ACTIVE))
|
||||
{
|
||||
if (activeGen->GetMovementGeneratorType() == SPLINE_CHAIN_MOTION_TYPE)
|
||||
{
|
||||
info = reinterpret_cast<SplineChainMovementGenerator const*>(activeGen)->GetResumeInfo(me);
|
||||
return;
|
||||
}
|
||||
}
|
||||
info.Chain = nullptr;
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ struct TC_GAME_API SplineChainResumeInfo
|
||||
SplineChainResumeInfo(uint32 id, SplineChain const* chain, bool walk, uint8 splineIndex, uint8 wpIndex, uint32 msToNext) :
|
||||
PointID(id), Chain(chain), IsWalkMode(walk), SplineIndex(splineIndex), PointIndex(wpIndex), TimeToNext(msToNext) { }
|
||||
bool Empty() const { return Chain == nullptr; }
|
||||
void Clear() { Chain = nullptr; }
|
||||
uint32 PointID;
|
||||
SplineChain const* Chain;
|
||||
bool IsWalkMode;
|
||||
|
||||
Reference in New Issue
Block a user