From 83bafbe08b508266d31a6a76f1ffc2cddc662390 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sat, 8 Feb 2014 17:50:26 -0500 Subject: Make flag strings clear specified flag with 'no' prefix Remove flagmask field from set_mapgen_params table Add small bits of needed documentation --- src/mapgen_math.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mapgen_math.cpp') 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(); -- cgit v1.2.3