summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Romeo <vittorio.romeo@outlook.com>2020-07-20 00:46:42 +0100
committerVittorio Romeo <vittorio.romeo@outlook.com>2020-07-20 00:46:42 +0100
commit67379a11e1019cdd3913d2b8ca0c86ec9983104e (patch)
tree3cb8118db879c8b1abaad4d6873854e7e7877ecd
parent5459f63942ac3a0bae0a44404ccba4e0b045c428 (diff)
-rw-r--r--src/SSVOpenHexagon/Core/HGScripting.cpp2
-rw-r--r--src/SSVOpenHexagon/Core/HexagonGame.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/SSVOpenHexagon/Core/HGScripting.cpp b/src/SSVOpenHexagon/Core/HGScripting.cpp
index bf0efb59..29168477 100644
--- a/src/SSVOpenHexagon/Core/HGScripting.cpp
+++ b/src/SSVOpenHexagon/Core/HGScripting.cpp
@@ -19,7 +19,7 @@ namespace hg
void HexagonGame::initLua_Utils()
{
- addLuaFn("u_getRandomSeed", //
+ addLuaFn("u_getAttemptRandomSeed", //
[this] { return rng.get_seed(); })
.doc(
"Obtain the current random seed, automatically generated at the "
diff --git a/src/SSVOpenHexagon/Core/HexagonGame.cpp b/src/SSVOpenHexagon/Core/HexagonGame.cpp
index 0ddd9afd..86445438 100644
--- a/src/SSVOpenHexagon/Core/HexagonGame.cpp
+++ b/src/SSVOpenHexagon/Core/HexagonGame.cpp
@@ -226,7 +226,7 @@ void HexagonGame::newGame(const std::string& mPackId, const std::string& mId,
// Initialize Lua random seed from random generator one:
try
{
- lua.executeCode("math.randomseed(u_getRandomSeed())");
+ lua.executeCode("math.randomseed(u_getAttemptRandomSeed())");
}
catch(...)
{