[Commits] [wesnoth/wesnoth] eb07de: Fix for halos glitching through locations that bec...
GitHub
noreply at github.com
Wed Mar 19 03:06:51 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: eb07de2bc23bcf2888df2a3bee807e14f3d72ba0
https://github.com/wesnoth/wesnoth/commit/eb07de2bc23bcf2888df2a3bee807e14f3d72ba0
Author: Ignacio R. Morelle <shadowm at wesnoth.org>
Date: 2014-03-19 (Wed, 19 Mar 2014)
Changed paths:
M changelog
M players_changelog
M src/halo.cpp
Log Message:
-----------
Fix for halos glitching through locations that become shrouded after rendering
Halos are never rendered for shrouded locations, but they are still
unrendered for them. A long-standing issue with [item] halos resulting
from this is that a halo that gets rendered to the screen at least once
for an unshrouded location later causes glitches if that location is
manually shrouded afterwards.
This can be avoided by not unrendering halos for shrouded locations. I
believe this solution makes sense because halos for shrouded locations
are never rendered first, and if the location is shrouded later on, the
display code will redraw the affected locations and overlay shroud on
top, causing the halo object's unrender buffer to become hopelessly
obsolete.
More information about the Commits
mailing list