Author: anonymissimus
Date: Wed Oct 19 22:01:38 2011
New Revision: 51544
URL: http://svn.gna.org/viewcvs/wesnoth?rev=51544&view=rev
Log:
Revert "[harm_unit]: added Lua workaround for bug #18795"
I do not want such workarounds to be added. shadowmaster's campaign
was still functional nevertheless. If there's an annoying bug
and nobody has the time or knowledge or energy to fix it then we must
just accept that it lingers around any annoys us.
Modified:
trunk/data/lua/wml-tags.lua
Modified: trunk/data/lua/wml-tags.lua
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/lua/wml-tags.lua?rev=51544&r1=51543&r2=51544&view=diff
==============================================================================
--- trunk/data/lua/wml-tags.lua (original)
+++ trunk/data/lua/wml-tags.lua Wed Oct 19 22:01:38 2011
@@ -750,9 +750,6 @@
private_unit.x, private_unit.y = unit_to_harm.x,
unit_to_harm.y
local att_stats, def_stats =
wesnoth.simulate_combat(private_unit, 1, unit_to_harm)
local temp_new_hitpoints = def_stats.average_hp
-
- --FIXME: the line below needs to be removed when bug
#18795 is fixed; this is just a workaround
- if tostring( temp_new_hitpoints ) == "-nan" then
temp_new_hitpoints = 0 end
if kill == false and temp_new_hitpoints <= 0 then
temp_new_hitpoints = 1
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits