[Commits] [wesnoth/wesnoth] f2d730: Convert unit animation code to use color_t

GitHub noreply at github.com
Wed Dec 7 00:10:59 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f2d730bd86d6b8b97d89d3f92176a44af6026dc4
      https://github.com/wesnoth/wesnoth/commit/f2d730bd86d6b8b97d89d3f92176a44af6026dc4
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-12-07 (Wed, 07 Dec 2016)

  Changed paths:
    M src/units/animation.cpp
    M src/units/animation.hpp
    M src/units/animation_component.cpp
    M src/units/animation_component.hpp
    M src/units/drawer.cpp
    M src/units/frame.cpp
    M src/units/frame.hpp
    M src/units/udisplay.cpp

  Log Message:
  -----------
  Convert unit animation code to use color_t

boost::optional was used for certain colors in frame.*pp since there isn't a good way to convert
a color_t to an "is present" bool.





More information about the Commits mailing list