[Commits] [wesnoth/wesnoth] efa91b: Fix #2275: Unit halo flickers when unit moves

GitHub noreply at github.com
Tue Dec 5 18:29:59 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: efa91bd9e8cbbac4d2a213da80040f3b30e81402
      https://github.com/wesnoth/wesnoth/commit/efa91bd9e8cbbac4d2a213da80040f3b30e81402
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-12-05 (Tue, 05 Dec 2017)

  Changed paths:
    M src/halo.cpp

  Log Message:
  -----------
  Fix #2275: Unit halo flickers when unit moves

The loss of new_haloes in commit 80d42597b8eb701e3cef40c7890fcb0bc402450e also meant that a halo
was scheduled for the next halo_impl::render() run only when the previous
halo was unrendered, i.e. in the next frame. Thus, when the unit halo was
recreated when the unit was moving (a temporary fake unit, and together
with it, the corresponding halo, is created every time the unit steps into
a new hex), the new halo didn't show up for one frame.

Fixed by adding every new halo into invalidated_haloes immediately.





More information about the Commits mailing list