MCPcopy Create free account
hub / github.com/ddnet/ddnet / AnimAddKeyframe

Function AnimAddKeyframe

src/game/client/animstate.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static void AnimAddKeyframe(CAnimKeyframe *pSeq, const CAnimKeyframe *pAdded, float Amount)
52{
53 // AnimSeqEval fills m_X for any case, clang-analyzer assumes going into the
54 // final else branch with pSeq->m_NumFrames < 2, which is impossible.
55 pSeq->m_X += pAdded->m_X * Amount; // NOLINT(clang-analyzer-core.UndefinedBinaryOperatorResult)
56 pSeq->m_Y += pAdded->m_Y * Amount;
57 pSeq->m_Angle += pAdded->m_Angle * Amount;
58}
59
60void CAnimState::AnimAdd(CAnimState *pState, const CAnimState *pAdded, float Amount)
61{

Callers 1

AnimAddMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected