[wesnoth-commits] [wesnoth/wesnoth] ebbecb: support [time_area] with no specific time schedule

gfgtdf noreply at github.com
Fri Feb 21 21:27:35 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: ebbecb3b047a38cd82c0f01068d982095fc215ed
      https://github.com/wesnoth/wesnoth/commit/ebbecb3b047a38cd82c0f01068d982095fc215ed
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2020-02-21 (Fri, 21 Feb 2020)

  Changed paths:
    M src/play_controller.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/time_of_day.cpp
    M src/tod_manager.cpp
    M src/tod_manager.hpp
    M src/utils/math.hpp

  Log Message:
  -----------
  support [time_area] with no specific time schedule

now the c++ code does no longer add a dummy time when
there are no times defines for an [time_area]. this is
in particular useful when one wants to define areas in
the map editor that is then used ingame for example in
filters.
We should consider renamaing [time_area] to just [area]
[time_area]s that don't define their own times schedule
are now ignored during tod calculation.


  Commit: d50e37c2e34d8d3f6a236a2f58370cee37ccda2f
      https://github.com/wesnoth/wesnoth/commit/d50e37c2e34d8d3f6a236a2f58370cee37ccda2f
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2020-02-21 (Fri, 21 Feb 2020)

  Changed paths:
    M src/tod_manager.cpp
    M src/tod_manager.hpp

  Log Message:
  -----------
  make tod_manager more robust & code cleanups

the setters in tod_manager now ake sure that their parameter
is valid


Compare: https://github.com/wesnoth/wesnoth/compare/b72ec6e6541c...d50e37c2e34d



More information about the Commits mailing list