Fix bot name in server only build

This commit is contained in:
Benau 2019-10-15 16:44:56 +08:00
parent 63878e9693
commit cb70036cb1

View File

@ -424,7 +424,11 @@ void ClientLobby::update(int ticks)
if (NetworkConfig::get()->isNetworkAITester()) if (NetworkConfig::get()->isNetworkAITester())
{ {
// I18N: Shown in lobby to indicate it's a bot in LAN game // I18N: Shown in lobby to indicate it's a bot in LAN game
#ifdef SERVER_ONLY
name = L"Bot";
#else
name = _("Bot"); name = _("Bot");
#endif
if (i > 0) if (i > 0)
{ {
name += core::stringw(" ") + StringUtils::toWString(i); name += core::stringw(" ") + StringUtils::toWString(i);