Removed notify and added warning follow roads

This commit is contained in:
Pax1601
2023-12-08 14:27:16 +01:00
parent 187b9be57a
commit 43d28ebe19
5 changed files with 12 additions and 2 deletions

View File

@@ -5,7 +5,11 @@
function Olympus.protectedCall(...)\n\n \
local status, retval = pcall(...)\n \
if not status then\n \
trigger.action.outText(\"ERROR: \" ..retval, 20)\n \
if Olympus.log ~= nil then\n \
Olympus.log:error(retval)\n \
else\n \
trigger.action.outText(\"Olympus critical error: \" ..retval, 20)\n \
end\n \
end\n \
end\n \
trigger.action.outText(\"Olympus.protectedCall registered successfully\", 10)\n"

View File

@@ -44,6 +44,7 @@ std::string to_string(const std::wstring& wstr)
std::string random_string(size_t length)
{
srand(time(NULL));
auto randchar = []() -> char
{
const char charset[] =