mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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:
parent
78103e622c
commit
68c799bf99
5 changed files with 103 additions and 10 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue