X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=sprite.c;h=3898123ab222ff02c50d1f4c613a2a0c577a8f44;hp=6a20442a4080d993ca30e2aa52112f044f1461e0;hb=e3edccb30438fa531aca19132a7ca532d3ac5dc9;hpb=100372ba9cc83542b9d9894001d70f40e28f8f4b 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.