diff options
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r-- | src/game/units.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp index 65f0a2c..d03ce76 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -357,11 +357,11 @@ void human_t::render_to(render::state_t *render) body_angle = move.angle; } - render->render(legs, render_bounds, move.angle); - render->render(body, render_bounds, body_angle); - render->render(&assets::human.head_idle, render_bounds, body_angle); + render->render(game->now * 10, legs, render_bounds, move.angle); + render->render(game->now * 10, body, render_bounds, body_angle); + render->render(game->now * 10, &assets::human.head_idle, render_bounds, body_angle); } else - render->render(&assets::human.dead, render_bounds); + render->render(game->now * 10, &assets::human.dead, render_bounds); unit_t::render_to(render); } @@ -370,8 +370,8 @@ alien_t::alien_t(game::state_t *game) : unit_t(game, UNIT_ALIEN) { cflags = CF_BODY_SMALL; health = max_health = 4; - size[0] = v2f_t(-0.2f, -0.2f); - size[1] = v2f_t(+0.2f, +0.2f); + size[0] = v2f_t(-0.2f, -0.3f); + size[1] = v2f_t(+0.2f, +0.3f); render_size[0] = v2f_t(-0.3f, -0.3f); render_size[1] = v2f_t(+0.3f, +0.3f); name = text::get(text::UNIT_ALIEN); @@ -432,10 +432,10 @@ void alien_t::render_to(render::state_t *render) moving = move.moving && !move.blocked; if (!dead) - render->render((moving ? &assets::alien.walking : + render->render(game->now * 20, (moving ? &assets::alien.walking : &assets::alien.idle), render_bounds, move.angle); else - render->render(&assets::alien.dead, render_bounds); + render->render(game->now * 20, &assets::alien.dead, render_bounds); unit_t::render_to(render); } |