Show tips in result screen only for local games

This commit is contained in:
Benau 2019-12-18 12:54:34 +08:00
parent 4d0952c716
commit 8b50536aae

View File

@ -145,8 +145,12 @@ void RaceResultGUI::init()
}
#ifndef SERVER_ONLY
core::stringw tips_string = _("Tip: ") + TipsManager::get()->getTip("race");
MessageQueue::add(MessageQueue::MT_GENERIC, tips_string);
if (!NetworkConfig::get()->isNetworking())
{
core::stringw tips_string = _("Tip: ");
tips_string += TipsManager::get()->getTip("race");
MessageQueue::add(MessageQueue::MT_GENERIC, tips_string);
}
#endif
} // init