[wesnoth-commits] [wesnoth/wesnoth] d8e249: Create a named struct for terrain name and movemen...

GitHub noreply at github.com
Mon Jul 23 14:25:55 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: d8e2498dded14e9df5abcd5e20ac8c8c252dca3a
      https://github.com/wesnoth/wesnoth/commit/d8e2498dded14e9df5abcd5e20ac8c8c252dca3a
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-07-23 (Mon, 23 Jul 2018)

  Changed paths:
    M projectfiles/VC14/wesnoth.vcxproj
    M projectfiles/VC14/wesnoth.vcxproj.filters
    M src/gui/widgets/unit_preview_pane.cpp
    M src/help/topic_text_generators.cpp
    M src/reports.cpp
    A src/terrain/movement.hpp

  Log Message:
  -----------
  Create a named struct for terrain name and movement pair

This allows the sorting logic top be shared between the sidebar and the
unit preview pane. It also means that we no longer need to create a lambda
to sort them.

I also refactored the generation of movement cost data in help. In
particular, we're no longer extracting the struct to named local variables.



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Commits mailing list