summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-11 19:10:19 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-11 19:10:19 +0300
commitee1fc0b63cb7f27df85c43474497b805df6e31f5 (patch)
treed233f17e1bfd751b6939646a24f1253ae8d14796 /src/game.cpp
parenta80f4ac5c1c3ef4d3ac5f026591b16074d0bf451 (diff)
downloadplus-ee1fc0b63cb7f27df85c43474497b805df6e31f5.tar.gz
plus-ee1fc0b63cb7f27df85c43474497b805df6e31f5.tar.bz2
plus-ee1fc0b63cb7f27df85c43474497b805df6e31f5.tar.xz
plus-ee1fc0b63cb7f27df85c43474497b805df6e31f5.zip
Remove default parameters from ChatTab::chatLog.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp40
1 files changed, 31 insertions, 9 deletions
diff --git a/src/game.cpp b/src/game.cpp
index e09e6c92f..488651f15 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -296,7 +296,12 @@ static void createGuiWindows()
{
const StringVect &messages = assertListener->getMessages();
FOR_EACH (StringVectCIter, it, messages)
- debugChatTab->chatLog(*it, ChatMsgType::BY_SERVER);
+ {
+ debugChatTab->chatLog(*it,
+ ChatMsgType::BY_SERVER,
+ IgnoreRecord_false,
+ TryRemoveColors_true);
+ }
delete2(assertListener);
}
if (config.getBoolValue("enableTradeTab"))
@@ -621,7 +626,10 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot,
// TRANSLATORS: save file message
std::string str = strprintf(_("Screenshot saved as %s"),
fileNameStr.c_str());
- localChatTab->chatLog(str, ChatMsgType::BY_SERVER);
+ localChatTab->chatLog(str,
+ ChatMsgType::BY_SERVER,
+ IgnoreRecord_false,
+ TryRemoveColors_true);
}
}
else
@@ -630,7 +638,9 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot,
{
// TRANSLATORS: save file message
localChatTab->chatLog(_("Saving screenshot failed!"),
- ChatMsgType::BY_SERVER);
+ ChatMsgType::BY_SERVER,
+ IgnoreRecord_false,
+ TryRemoveColors_true);
}
logger->log1("Error: could not save screenshot.");
}
@@ -807,8 +817,12 @@ void Game::adjustPerfomance()
config.setSilent("beingopacity", true);
if (localChatTab != nullptr)
{
- localChatTab->chatLog("Auto disable Show "
- "beings transparency", ChatMsgType::BY_SERVER);
+ localChatTab->chatLog(
+ // TRANSLATORS: auto adjust settings message
+ _("Auto disable Show beings transparency"),
+ ChatMsgType::BY_SERVER,
+ IgnoreRecord_false,
+ TryRemoveColors_true);
}
}
else
@@ -824,8 +838,12 @@ void Game::adjustPerfomance()
ParticleEngine::emitterSkip = 4;
if (localChatTab != nullptr)
{
- localChatTab->chatLog("Auto lower Particle "
- "effects", ChatMsgType::BY_SERVER);
+ localChatTab->chatLog(
+ // TRANSLATORS: auto adjust settings message
+ _("Auto lower Particle effects"),
+ ChatMsgType::BY_SERVER,
+ IgnoreRecord_false,
+ TryRemoveColors_true);
}
}
else
@@ -841,8 +859,12 @@ void Game::adjustPerfomance()
config.setSilent("alphaCache", false);
if (localChatTab != nullptr)
{
- localChatTab->chatLog("Auto enable opacity cache",
- ChatMsgType::BY_SERVER);
+ localChatTab->chatLog(
+ // TRANSLATORS: auto adjust settings message
+ _("Auto enable opacity cache"),
+ ChatMsgType::BY_SERVER,
+ IgnoreRecord_false,
+ TryRemoveColors_true);
}
}
break;