Fix #1563: graphical glitch when two halos touch
I had added a unrender() call to halo_impl::effect::set_location() in an attempt to fix haloes from showing in the top-left corner when a Mage of Light is being moved. It had turned out to be unnecessary in the end, but I had retained the call because I thought it was the right thing to do. However, it turned out that removing that call is all it takes to fix bug #1563. Thanks to @newfrenchy83 for bringing the fix to my attention.
This commit is contained in:
parent
913500aba4
commit
8a7aa49718
1 changed files with 0 additions and 1 deletions
|
@ -169,7 +169,6 @@ void halo_impl::effect::set_location(int x, int y)
|
|||
int new_x = x - disp->get_location_x(map_location::ZERO());
|
||||
int new_y = y - disp->get_location_y(map_location::ZERO());
|
||||
if (new_x != x_ || new_y != y_) {
|
||||
unrender();
|
||||
x_ = new_x;
|
||||
y_ = new_y;
|
||||
buffer_.assign(nullptr);
|
||||
|
|
Loading…
Add table
Reference in a new issue