mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +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);
|
lua_pop(l, 2);
|
||||||
}
|
}
|
||||||
if((*luacon_currentCommand))
|
if((*luacon_currentCommand))
|
||||||
(*luacon_lastError) = text;
|
{
|
||||||
|
if(luacon_lastError->length())
|
||||||
|
*luacon_lastError += "; ";
|
||||||
|
*luacon_lastError += text;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
luacon_ci->Log(CommandInterface::LogNotice, text.c_str());
|
luacon_ci->Log(CommandInterface::LogNotice, text.c_str());
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user