[wesnoth-commits] [wesnoth/wesnoth] 6d6414: Add comments about minimap.cpp's use of "team colors"

Steve Cotton noreply at github.com
Thu May 7 13:12:53 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 6d6414d0688f2c06c9e0a6654037719c87bef22e
      https://github.com/wesnoth/wesnoth/commit/6d6414d0688f2c06c9e0a6654037719c87bef22e
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2020-05-07 (Thu, 07 May 2020)

  Changed paths:
    M src/game_config.hpp
    M src/minimap.cpp

  Log Message:
  -----------
  Add comments about minimap.cpp's use of "team colors"

Maybe the "team_rgb_range" should be renamed as "named_color_range", because
it's used for everything defined by the WML `[color_range]` tag. In addition to
the ones normally used for teams (`red`, `lightblue`, etc) it has the minimap
colors for `reef`, `cave`, etc.

Separating the team colors from the terrain colors probably shouldn't be done.
Looking from the opposite perspective, using the terrain colors as team colors
has been discussed on the forums and found to be a useful feature:

* https://r.wesnoth.org/p627592
* https://r.wesnoth.org/p627588





More information about the Commits mailing list