X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=sprite.c;h=3898123ab222ff02c50d1f4c613a2a0c577a8f44;hp=6a20442a4080d993ca30e2aa52112f044f1461e0;hb=8332fa82bd3726436a1c3165484ed8207ed23ede;hpb=74578386a4db505fc0ed1769cd187275eff5d39c diff --git a/sprite.c b/sprite.c index 6a20442..3898123 100644 --- a/sprite.c +++ b/sprite.c @@ -128,11 +128,11 @@ reset_sprites(void) } void -move_sprite(Sprite *s, float ticks) +move_sprite(Sprite *s) { if(s->flags & MOVE) { - s->x += (s->dx - screendx)*ticks; - s->y += (s->dy - screendy)*ticks; + s->x += (s->dx - screendx)*t_frame; + s->y += (s->dy - screendy)*t_frame; } } @@ -148,7 +148,7 @@ sort_sprite(Sprite *s) } void -move_sprites(float ticks) +move_sprites(void) { int sq; Sprite **head; @@ -158,7 +158,7 @@ move_sprites(float ticks) head=&sprites[set][sq]; while(*head) { Sprite *s = remove_sprite(head); - move_sprite(s, ticks); sort_sprite(s); + move_sprite(s); sort_sprite(s); } } set = 1-set; // switch to other set of sprites.