[Commits] [wesnoth/wesnoth] 501c50: Default Map Generator: some refactoring to fix iss...
GitHub
noreply at github.com
Sat Sep 3 05:07:42 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 501c50fcea8b644a7aeb292458e7b2fb86a994a4
https://github.com/wesnoth/wesnoth/commit/501c50fcea8b644a7aeb292458e7b2fb86a994a4
Author: Charles Dang <exodia339 at gmail.com>
Date: 2016-09-03 (Sat, 03 Sep 2016)
Changed paths:
M src/generators/default_map_generator.cpp
M src/generators/default_map_generator.hpp
M src/generators/default_map_generator_job.cpp
M src/generators/default_map_generator_job.hpp
Log Message:
-----------
Default Map Generator: some refactoring to fix issues with map generation introduced in 0d07c1a8151b
The cause was the data_ class member being modified every time the map was regenerated using itself
for the calculations, causing an eventually-fatal cumulative effect. This solves that by keeping a
temp copy of the data which is then modified and passed to the generator job.
More information about the Commits
mailing list