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

GitHub noreply at github.com
Mon Jul 23 13:34:12 UTC 2018


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

  Changed paths:
    M projectfiles/VC12/wesnoth.vcxproj
    M projectfiles/VC12/wesnoth.vcxproj.filters
    M src/gui/widgets/unit_preview_pane.cpp
    M src/help/help_topic_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.

Finally, this commit also fixes build on Visual Studio 2013.



      **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