[Commits] [wesnoth/wesnoth] d98093: Config Attribute Value: added write_if_not_empty h...
GitHub
noreply at github.com
Thu Jan 25 07:15:31 UTC 2018
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: d98093ebbac88e7bec471e4831a0a4729052fd83
https://github.com/wesnoth/wesnoth/commit/d98093ebbac88e7bec471e4831a0a4729052fd83
Author: Charles Dang <exodia339 at gmail.com>
Date: 2018-01-25 (Thu, 25 Jan 2018)
Changed paths:
M src/config_attribute_value.cpp
M src/config_attribute_value.hpp
Log Message:
-----------
Config Attribute Value: added write_if_not_empty helper
Takes a string and assigns a value only if that string is not empty.
Commit: 438e021a27d02575d236800cb346f355a61c3fa5
https://github.com/wesnoth/wesnoth/commit/438e021a27d02575d236800cb346f355a61c3fa5
Author: Charles Dang <exodia339 at gmail.com>
Date: 2018-01-25 (Thu, 25 Jan 2018)
Changed paths:
M src/editor/map/map_context.cpp
M src/time_of_day.cpp
Log Message:
-----------
Editor: exclude some rarely-used keys from [time] and [item] if empty
Note that I added the exclude-if-not-empty code directly to time_of_day::write, since
that's what the editor uses, instead of manually writing keys as it does with items and
side units. Hopefully that won't have an adverse effect somewhere else.
Compare: https://github.com/wesnoth/wesnoth/compare/4a6042a3c95a...438e021a27d0
More information about the Commits
mailing list