[Commits] [wesnoth/wesnoth] 218d73: check properly if a config attribute value is not ...
GitHub
noreply at github.com
Mon Dec 1 00:40:25 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 218d7370ea3d54ef97db91766373a167af990197
https://github.com/wesnoth/wesnoth/commit/218d7370ea3d54ef97db91766373a167af990197
Author: Chris Beck <render787 at gmail.com>
Date: 2014-11-30 (Sun, 30 Nov 2014)
Changed paths:
M src/game_initialization/connect_engine.cpp
Log Message:
-----------
check properly if a config attribute value is not a boolean
I don't know if this commit is related to or fixes any bugs, but
there are many bugs reported about fog / shroud / mp campaigns it
seems, and these lines always looked a bit squirrely to me. Since
boolean config values can be indicated by "yes", "no", "true" or
"false", testing for the presence of "yes" / "no" only seems like
it won't work in general, even if it works oftentimes. This commit
replaces it with a test for whether the to_bool function is
selecting the default boolean value.
More information about the Commits
mailing list