mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 05:00:46 +00:00
Making FF_MIDDLESTARTCHANCE more useful for FF_ANIMATE animations.
This commit is contained in:
parent
46e50a523f
commit
f1311c515d
1 changed files with 2 additions and 2 deletions
|
@ -533,7 +533,7 @@ boolean P_SetPlayerMobjState(mobj_t *mobj, statenum_t state)
|
|||
mobj->sprite = st->sprite;
|
||||
mobj->frame = st->frame;
|
||||
if ((st->frame & (FF_ANIMATE|FF_MIDDLESTARTCHANCE)) == (FF_ANIMATE|FF_MIDDLESTARTCHANCE))
|
||||
mobj->frame += (st->var1)/2;
|
||||
mobj->frame += P_RandomKey(st->var1);
|
||||
}
|
||||
|
||||
// Modified handling.
|
||||
|
@ -648,7 +648,7 @@ boolean P_SetMobjState(mobj_t *mobj, statenum_t state)
|
|||
mobj->sprite = st->sprite;
|
||||
mobj->frame = st->frame;
|
||||
if ((st->frame & (FF_ANIMATE|FF_MIDDLESTARTCHANCE)) == (FF_ANIMATE|FF_MIDDLESTARTCHANCE))
|
||||
mobj->frame += (st->var1)/2;
|
||||
mobj->frame += P_RandomKey(st->var1);
|
||||
}
|
||||
|
||||
// Modified handling.
|
||||
|
|
Loading…
Reference in a new issue