Buggfix: Prevent clip switching on falling sprite
- This was a forgotten effect when the falling was implemented on the player struct.
This commit is contained in:
parent
988b53a4fa
commit
367be69852
|
@ -702,5 +702,6 @@ void
|
|||
player_set_falling(Player *player)
|
||||
{
|
||||
mixer_play_effect(FALL0 + get_random(1));
|
||||
player->sprite->clip = CLIP16(0, 0);
|
||||
player->sprite->state = SPRITE_STATE_FALLING;
|
||||
}
|
||||
|
|
|
@ -123,7 +123,6 @@ sprite_update(Sprite *s, UpdateData *data)
|
|||
if (s->state == SPRITE_STATE_FALLING) {
|
||||
if (!timer_started(s->animationTimer)) {
|
||||
timer_start(s->animationTimer);
|
||||
s->clip = CLIP16(0, 0);
|
||||
} else {
|
||||
if (timer_get_ticks(s->animationTimer) > 100) {
|
||||
timer_start(s->animationTimer);
|
||||
|
|
Loading…
Reference in New Issue