Improve light curve parameter limits and documentation (#9054)
authorParamat <paramat@users.noreply.github.com>
Thu, 24 Oct 2019 00:08:49 +0000 (01:08 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Oct 2019 00:08:49 +0000 (01:08 +0100)
commit1f142ec06fc146464822a322fdf39bddb680bfe6
tree3b508ac3a0a59ff07e41e6c33a42c1e30b10c175
parentcd35949cd07dff9f64f982b7a28999b89dfbeb5a
Improve light curve parameter limits and documentation (#9054)

Revert gamma upper limit to 3.0 because that was raised based on
a misunderstanding and had no benefit. A sane upper limit is
needed as players on a competitive server tend to use the maximum.
Set gamma lower limit to 0.33 for consistency with 3.0.
Set sane limits on alpha, beta, boost and enforce these in code
to limit values entered in minetest.conf and to avoid easy cheating
by editing settingtypes.txt.
Improve documentation and 'readable' setting names.
Clarify that gamma does not significantly affect natural night light.
light.cpp: Various codestyle and comment improvements.
builtin/settingtypes.txt
src/light.cpp