Skip to content

Commit

Permalink
Fixed angle SRVO was only updated while mobj states were animated
Browse files Browse the repository at this point in the history
Always update the angle SRVO so that it can be used in place of mobj
angle when the smoothed angle is desired.
  • Loading branch information
danij-deng committed Jan 3, 2012
1 parent 15f3801 commit dd4d573
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doomsday/plugins/jdoom/src/p_mobj.c
Expand Up @@ -707,13 +707,14 @@ void P_MobjThinker(mobj_t* mo)
}
}

// Update "angle-srvo" (smooth actor turning).
P_MobjAngleSRVOTicker(mo);

// Cycle through states, calling action functions at transitions.
if(mo->tics != -1)
{
mo->tics--;

P_MobjAngleSRVOTicker(mo); // "angle-servo"; smooth actor turning.

// You can cycle through multiple states in a tic.
if(!mo->tics)
{
Expand Down

0 comments on commit dd4d573

Please sign in to comment.