[wesnoth-commits] [wesnoth/wesnoth] 481831: Display: renamed get_disp_context to current_displ...

GitHub noreply at github.com
Fri Apr 20 06:01:11 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 4818312150ac114ab56ad7c0dac88ea8f5e15859
      https://github.com/wesnoth/wesnoth/commit/4818312150ac114ab56ad7c0dac88ea8f5e15859
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2018-04-20 (Fri, 20 Apr 2018)

  Changed paths:
    M src/display.hpp
    M src/display_chat_manager.cpp
    M src/help/utils.cpp
    M src/map/label.cpp
    M src/units/abilities.cpp
    M src/units/drawer.cpp

  Log Message:
  -----------
  Display: renamed get_disp_context to current_display_context

This is to avoid confusion with filter_context::get_disp_context. display used to
inherit from filter_context, but that was refactored out a while back. I left
get_disp_context since it was used and useful, but I realize now it causes more
confusion than not.

Also converted help::load_terrain_types_data to use get_map() directly since I
noticed it.

And changed a stray use of `thedisp` to `disp` in unit_drawer. Doesn't do anything
but it was bugging me.




More information about the Commits mailing list