mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Make flag strings clear specified flag with 'no' prefix
Remove flagmask field from set_mapgen_params table Add small bits of needed documentation
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user