Use setting groups for NoiseParams
Add format example to minetest.conf.example Add Settings::setU16() Throw exception on attempted access of NULL settings groups
This commit is contained in:
@@ -512,7 +512,7 @@ struct TestSettings: public TestBase
|
||||
// Test settings groups
|
||||
Settings *group = s.getGroup("asdf");
|
||||
UASSERT(group != NULL);
|
||||
UASSERT(s.getGroup("zoop") == NULL);
|
||||
UASSERT(s.getGroupNoEx("zoop", group) == false);
|
||||
UASSERT(group->getS16("a") == 5);
|
||||
UASSERT(fabs(group->getFloat("b") - 2.5) < 0.001);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user