mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 07:47:57 +03:00
Don't try to execute empty lines
This commit is contained in:
parent
075c438b5d
commit
d47e8d0e69
1 changed files with 3 additions and 0 deletions
|
@ -251,6 +251,9 @@ unsigned CALLBACK ConsoleInput(void*)
|
|||
if (!std::getline(std::cin, input))
|
||||
break;
|
||||
|
||||
if (std::regex_match(input, std::regex("^\\s*$")))
|
||||
continue;
|
||||
|
||||
if (g_GameScript == nullptr)
|
||||
{
|
||||
TENLog("Scripting engine not initialized.", LogLevel::Error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue