Follow-up Comment #1, patch #1101 (project wesnoth):

I updated the patch a bit (thanks to suokko for some suggestions):
-limited the usage of utils::string_bool()
-moved the label fog-dependency check to the visible() method
-removed the effectively useless overlay invalidation parse in
clear_shroud_unit()

One big thing that remains to be done is team-specific parsing/marking of
labels to be recalculated, as currently simply all of them are recalculated
to get the full functionality. I've tried many different ways, but couldn't
get the full desired effect: namely I got it to show the labels on clearing
the shroud, but couldn't hide them during in the same turn. If that's ok, I
can do it like that, but otherwise I'm leaving it done globally, since that's
the only way I got it to show/hide labels in the same turn.

(file #4773)
    _______________________________________________________

Additional Item Attachment:

File name: fogged items+overlays2.patch   Size:7 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1101>

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


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to