aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_math.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-02-08 17:50:26 -0500
committerkwolekr <kwolekr@minetest.net>2014-02-08 17:50:59 -0500
commit83bafbe08b508266d31a6a76f1ffc2cddc662390 (patch)
tree555f877e367a8e1a00200c3fe3fa889538169291 /src/mapgen_math.cpp
parentf4f98c9550325aa8178f99cd32ea8806669aa280 (diff)
downloadminetest-83bafbe08b508266d31a6a76f1ffc2cddc662390.tar.gz
minetest-83bafbe08b508266d31a6a76f1ffc2cddc662390.tar.bz2
minetest-83bafbe08b508266d31a6a76f1ffc2cddc662390.zip
Make flag strings clear specified flag with 'no' prefix
Remove flagmask field from set_mapgen_params table Add small bits of needed documentation
Diffstat (limited to 'src/mapgen_math.cpp')
-rw-r--r--src/mapgen_math.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen_math.cpp b/src/mapgen_math.cpp
index aee2b0d2a..62b81c8ef 100644
--- a/src/mapgen_math.cpp
+++ b/src/mapgen_math.cpp
@@ -169,7 +169,7 @@ void MapgenMathParams::writeParams(Settings *settings) {
MapgenMath::MapgenMath(int mapgenid, MapgenParams *params_, EmergeManager *emerge) : MapgenV7(mapgenid, params_, emerge) {
mg_params = (MapgenMathParams *)params_;
- this->flags |= MG_NOLIGHT;
+ this->flags &= ~MG_LIGHT;
Json::Value & params = mg_params->params;
invert = params["invert"].empty() ? 1 : params["invert"].asBool(); //params["invert"].empty()?1:params["invert"].asBool();