1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

add broadcast to translation

This commit is contained in:
Laserlicht
2024-12-01 18:29:07 +01:00
parent d4b2ec5b0b
commit 78e933a968
6 changed files with 105 additions and 38 deletions

View File

@@ -3264,7 +3264,11 @@ bool CGameHandler::queryReply(QueryID qid, std::optional<int32_t> answer, Player
bool CGameHandler::complain(const std::string &problem)
{
#ifndef ENABLE_GOLDMASTER
playerMessages->broadcastSystemMessage("Server encountered a problem: " + problem);
MetaString str;
str.appendTextID("vcmi.broadcast.serverproblem");
str.appendRawString(": ");
str.appendRawString(problem);
playerMessages->broadcastSystemMessage(str);
#endif
logGlobal->error(problem);
return true;