Follow-up Comment #2, bug #18017 (project wesnoth):

Hello boucman,

no, afaik this bug is unrelated to the tod manager (and not fixed by my
commits r49631ff).
However, the wml tag [color_adjust] in effect here calls
game_display::adjust_colors(int r, int g, int b)
A way to fix it would probably be to iterate over all map hexes in that
function and then call
time_of_day& tod_manager::get_time_of_day(const map_location& loc, int
n_turn)
which returns the correct tod object for each hex taking time areas into
account (for the turn passed, 0 for the current turn) as opposed to
tod_manager_.get_time_of_day()
which returns only the main time of a scenario.
Also the
image::set_color_adjustment(tod.red+r,tod.green+g,tod.blue+b);
would need to be hex-specific called then...

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?18017>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to