allow missile animations to go post time=0
This commit is contained in:
parent
8e77dc08ea
commit
54b58abf3b
1 changed files with 2 additions and 1 deletions
|
@ -300,7 +300,8 @@ bool unit_attack_ranged(display& disp, unit_map& units,
|
||||||
halo::remove(missile_frame_halo);
|
halo::remove(missile_frame_halo);
|
||||||
missile_halo = 0;
|
missile_halo = 0;
|
||||||
missile_frame_halo = 0;
|
missile_frame_halo = 0;
|
||||||
if(pos > 0.0 && pos < 1.0 && (!disp.fogged(b.x,b.y) || !disp.fogged(a.x,a.y))) {
|
if(animation_time < missile_animation.get_last_frame_time() && pos < 1.0 && (!disp.fogged(b.x,b.y) || !disp.fogged(a.x,a.y))) {
|
||||||
|
|
||||||
missile_animation.update_current_frame();
|
missile_animation.update_current_frame();
|
||||||
const unit_frame& missile_frame = missile_animation.get_current_frame();
|
const unit_frame& missile_frame = missile_animation.get_current_frame();
|
||||||
std::string missile_image= missile_frame.image;
|
std::string missile_image= missile_frame.image;
|
||||||
|
|
Loading…
Add table
Reference in a new issue