diff options
author | Vittorio Romeo <vittorio.romeo@outlook.com> | 2020-09-19 16:25:14 +0100 |
---|---|---|
committer | Vittorio Romeo <vittorio.romeo@outlook.com> | 2020-09-19 16:25:14 +0100 |
commit | da971aa5432bdaef392a8179b811373335340fa7 (patch) | |
tree | 2735455811fe088a6cc3746b3e80362509cba261 | |
parent | df71218356c547b36b52569ab33bae78bfd8aa57 (diff) |
-rw-r--r-- | src/SSVOpenHexagon/Core/HGScripting.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SSVOpenHexagon/Core/HGScripting.cpp b/src/SSVOpenHexagon/Core/HGScripting.cpp index 23feed4c..aeefc764 100644 --- a/src/SSVOpenHexagon/Core/HGScripting.cpp +++ b/src/SSVOpenHexagon/Core/HGScripting.cpp @@ -1277,6 +1277,7 @@ void HexagonGame::initLua_CustomWalls() void HexagonGame::initLua() { + // TODO: cleanup/refactor const auto rndReal = [this]() -> float { return rng.get_real<float>(0, 1); }; @@ -1298,7 +1299,8 @@ void HexagonGame::initLua() addLuaFn("u_rndInt", rndInt) .arg("lower") - .doc("Return a random real number in the [lower; `$0`] range."); + .arg("upper") + .doc("Return a random real number in the [`$0`; `$1`] range."); // TODO: eww, but seems to fix. consider exposing functions and deprecating // `math.random` |