diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-15 18:11:02 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-15 18:11:02 +0100 |
commit | d1ea04251bf5f77a0eeda2ce1247a17c19556a6c (patch) | |
tree | c17bf8eb9a821dd2fd7c4e20344edee0ea0b04c6 /src/game/effects.cpp | |
parent | 4dd7ac29fe0132b9f5896a84ccfe8d05363dfa74 (diff) |
Explicit phase control for animated textures.
Diffstat (limited to 'src/game/effects.cpp')
-rw-r--r-- | src/game/effects.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/effects.cpp b/src/game/effects.cpp index e80623e..306405f 100644 --- a/src/game/effects.cpp +++ b/src/game/effects.cpp @@ -51,7 +51,10 @@ fx_blood_t::fx_blood_t(state_t *game_, v2f_t x_, bool alien_) : effect_t(game_) void fx_blood_t::render_to(render::state_t *render) { - render->render(&assets::fx.blood, render_bounds); + double phase; + + phase = (game->now - ttl) + 1; + render->render(phase, &assets::fx.blood, render_bounds); } } // namespace game |