mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 10:49:53 +02:00
fix tpt.log so that when called multiple times, it doesn't overwrite the text
This commit is contained in:
@@ -958,7 +958,11 @@ int luatpt_log(lua_State* l)
|
||||
lua_pop(l, 2);
|
||||
}
|
||||
if((*luacon_currentCommand))
|
||||
(*luacon_lastError) = text;
|
||||
{
|
||||
if(luacon_lastError->length())
|
||||
*luacon_lastError += "; ";
|
||||
*luacon_lastError += text;
|
||||
}
|
||||
else
|
||||
luacon_ci->Log(CommandInterface::LogNotice, text.c_str());
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user