Follow-up Comment #5, patch #1100 (project wesnoth):

I've added an extra optimization regarding the last version. It concerns
multi-team-specific item overlays. Normally, the code should redraw all
overlays with a team_name every turn, which is not necessary if the
presence/absence of an overlay does not change between two consecutive
players. I added an extra check that is supposed to do that.

Also, here's a rundown of what the patch does:
-in play_side():
At the very beginning of each turn a current overlay_map is parsed and items
that have a team_name are marked for invalidation (unless their state did not
change from the previous player)
-in draw_hex():
The original overlay-drawing code has an extra check - it will be executed
only for overlays with no team_name (default behaviur) or with a team_name
containing the current playing team.
-the patch also extends the overlay struct and adds writing of the team_name
to the save files.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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