mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-03 04:52:35 +02:00
fix console not closing when you use !load
This commit is contained in:
@@ -22,7 +22,7 @@ ConsoleController::ConsoleController(ControllerCallback * callback, CommandInter
|
|||||||
|
|
||||||
void ConsoleController::EvaluateCommand(std::string command)
|
void ConsoleController::EvaluateCommand(std::string command)
|
||||||
{
|
{
|
||||||
if (command.substr(0, 5) == "!load ")
|
if (command.substr(0, 6) == "!load ")
|
||||||
CloseConsole();
|
CloseConsole();
|
||||||
int returnCode = commandInterface->Command(command);
|
int returnCode = commandInterface->Command(command);
|
||||||
if(command.length())
|
if(command.length())
|
||||||
|
Reference in New Issue
Block a user