mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
Fix issue which caused assignments and similar lua code to not work in the console
This commit is contained in:
parent
ca3314b416
commit
ace7aaada7
@ -543,7 +543,7 @@ TConsole::TConsole() {
|
|||||||
} else if (!cmd.empty() && cmd.at(0) == ':') {
|
} else if (!cmd.empty() && cmd.at(0) == ':') {
|
||||||
HandleLuaInternalCommand(cmd.substr(1));
|
HandleLuaInternalCommand(cmd.substr(1));
|
||||||
} else {
|
} else {
|
||||||
auto Future = mLuaEngine->EnqueueScript(mStateId, { std::make_shared<std::string>(cmd), "", "" });
|
auto Future = mLuaEngine->EnqueueScript(mStateId, { std::make_shared<std::string>(TrimmedCmd), "", "" });
|
||||||
while (!Future->Ready) {
|
while (!Future->Ready) {
|
||||||
std::this_thread::yield(); // TODO: Add a timeout
|
std::this_thread::yield(); // TODO: Add a timeout
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user