Follow-up Comment #3, bug #13200 (project wesnoth):

A possible explanation of a recent change is that we now clear shroud/fog
before the attack and not after because it caused insufficient shroud/fog
removal in the case of death or slow attack (same changelog entry, but only
your WML make it visible for normal attack)

>From the WML that you described on IRC, the terrain was updated after the
death of the unit, so this is probably why it worked before, because we also
did the fog/shroud update at that point. The fact that you believed that the
[redraw] did it was maybe a confusion with this shroud update and the rebuild
of the terrain (which is still done by a simple and needed [redraw])

Note that adding another second fog update after an enemy death makes no
sense, because killing an enemy never modify your fog. If it's caused by a
special WML event, the general policy is that the WML must ask the redraw if
needed.

In 1.7, I wish to automatize these shroud updates, by doing them each time
it's needed (change of MP max, terrain movement, terrain map,  units position
etc..), but not sure yet how possible it is.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?13200>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to