[wesnoth-commits] [wesnoth/wesnoth] 7669e8: fix terrain cache not handling terrains not on the...
GitHub
noreply at github.com
Fri Mar 2 14:41:38 UTC 2018
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 7669e8060a095850aa07b2cad179ab982bcffe8f
https://github.com/wesnoth/wesnoth/commit/7669e8060a095850aa07b2cad179ab982bcffe8f
Author: gfgtdf <daniel.gfgtdf at gmail.com>
Date: 2018-03-02 (Fri, 02 Mar 2018)
Changed paths:
M src/terrain/type_data.cpp
M src/terrain/type_data.hpp
Log Message:
-----------
fix terrain cache not handling terrains not on the map.
previously it functions like underlying_mvt_terrain would only work for mixed locations that are present on the map. This made wesnoth.unit_movement_cost and similar functions return wrong values for those terrains. Even worse, the movetype would cache the 'bad' result leading to bugs such as #2571
fixes #2571
More information about the Commits
mailing list