allow missile animations to go post time=0

This commit is contained in:
Jérémy Rosen 2006-06-28 20:00:03 +00:00
parent 8e77dc08ea
commit 54b58abf3b

View file

@ -300,7 +300,8 @@ bool unit_attack_ranged(display& disp, unit_map& units,
halo::remove(missile_frame_halo);
missile_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();
const unit_frame& missile_frame = missile_animation.get_current_frame();
std::string missile_image= missile_frame.image;