mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Use SetWeight() and SetOnceType() instead of setting the frameinfo directly
This commit is contained in:
parent
9f5557b33c
commit
c4f9eb65ae
1 changed files with 2 additions and 3 deletions
|
@ -265,11 +265,10 @@ void Animate::NewAnim(int animnum, int slot, float weight)
|
|||
animFlags[slot] = ANIM_LOOP | ANIM_NODELTA | ANIM_NOEXIT;
|
||||
|
||||
if (!(gi.Anim_FlagsSkel(edict->tiki, animnum) & ANIM_LOOP)) {
|
||||
animFlags[slot] &= ~ANIM_LOOP;
|
||||
SetOnceType(slot);
|
||||
}
|
||||
|
||||
edict->s.frameInfo[slot].weight = weight;
|
||||
|
||||
SetWeight(slot, weight);
|
||||
animtimes[slot] = gi.Anim_Time(edict->tiki, animnum);
|
||||
frametimes[slot] = gi.Anim_Frametime(edict->tiki, animnum);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue