Log executed debug commands with result

This commit is contained in:
obligaron 2021-08-29 10:37:50 +02:00 committed by Anders Jenbo
commit d954a9751c

View file

@ -587,6 +587,7 @@ bool CheckDebugTextCommand(const std::string_view text)
if (text.length() > (dbgCmd.text.length() + 1))
parameter = text.substr(dbgCmd.text.length() + 1);
const auto result = dbgCmd.actionProc(parameter);
Log("DebugCmd: {} Result: {}", text, result);
InitDiabloMsg(result);
return true;
}