[wesnoth-commits] [wesnoth/wesnoth] c5b229: AI: cleaned up use of utils::variant

Charles Dang noreply at github.com
Wed Jan 20 00:43:31 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: c5b2298f10b07c2d3763d778230175776183cafe
      https://github.com/wesnoth/wesnoth/commit/c5b2298f10b07c2d3763d778230175776183cafe
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2021-01-20 (Wed, 20 Jan 2021)

  Changed paths:
    M src/ai/contexts.cpp
    M src/ai/formula/ai.cpp
    M src/ai/lua/core.cpp
    M src/ai/lua/lua_object.hpp

  Log Message:
  -----------
  AI: cleaned up use of utils::variant

- Got rid of code duplication
- Used visitors over index checks + get





More information about the Commits mailing list