[wesnoth-commits] [wesnoth/wesnoth] f14481: Fixed color_adjust not applying to map items (fixe...

GitHub noreply at github.com
Sun Mar 4 10:13:50 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f14481ba23fd1917a2f5b07329a12fa1577038be
      https://github.com/wesnoth/wesnoth/commit/f14481ba23fd1917a2f5b07329a12fa1577038be
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2018-03-04 (Sun, 04 Mar 2018)

  Changed paths:
    M src/display.cpp

  Log Message:
  -----------
  Fixed color_adjust not applying to map items (fixes #2588)

Appears to be a regression from 45e8753cc58facabe70446f90df0f06fa3dd2ce8 - color adjust not
applied unless local tod was different from global - and 478c75bdb5bc914fcd71469a2ae6967cadc99e11
- changed the first argument of the get_light_string call from -1 to 0. Not sure why that has
an effect, but if it remains 0 then the item ToD seems a bit out of sync with the rest of the map
when using, say, FADE_TO_BLACK. Restoring it to -1 fixes that.

I confirmed both that map-wide ToD and local [time_area] ToD apply to items after this patch.




More information about the Commits mailing list