Skip to content

Commit

Permalink
Fix [kill]ed units flashing briefly after death animation
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive committed Sep 8, 2017
1 parent 0c3627e commit d40a9e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/lua/wml/kill.lua
Expand Up @@ -70,7 +70,7 @@ function wesnoth.wml_actions.kill(cfg)
end
anim:run()
end
wesnoth.wml_actions.redraw{}
-- wesnoth.wml_actions.redraw{}

if can_fire then
wesnoth.fire_event("die", death_loc, killer_loc)
Expand All @@ -85,6 +85,8 @@ function wesnoth.wml_actions.kill(cfg)
-- Test that it's valid (and still on the map) first, in case the event erased (or extracted) it.
if unit.valid == "map" then unit:erase() end

wesnoth.wml_actions.redraw{}

number_killed = number_killed + 1
end

Expand Down

0 comments on commit d40a9e9

Please sign in to comment.