Update messages a bit

This commit is contained in:
def 2016-05-20 18:36:32 +02:00
parent ede6a9f93f
commit aff85462aa
3 changed files with 8 additions and 10 deletions

View file

@ -1310,7 +1310,7 @@ void CMenus::RenderServerbrowser(CUIRect MainView)
char aBuf[64]; char aBuf[64];
if(str_comp(Client()->LatestVersion(), "0") != 0) if(str_comp(Client()->LatestVersion(), "0") != 0)
{ {
str_format(aBuf, sizeof(aBuf), Localize("DDNet %s is out! Download it at ddnet.tw!"), Client()->LatestVersion()); str_format(aBuf, sizeof(aBuf), Localize("DDNet %s is out! Download it at DDNet.tw!"), Client()->LatestVersion());
TextRender()->TextColor(1.0f, 0.4f, 0.4f, 1.0f); TextRender()->TextColor(1.0f, 0.4f, 0.4f, 1.0f);
} }
else else

View file

@ -18,9 +18,9 @@ void CGameContext::ConCredits(IConsole::IResult *pResult, void *pUserData)
CGameContext *pSelf = (CGameContext *) pUserData; CGameContext *pSelf = (CGameContext *) pUserData;
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit", pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
"DDRaceNetwork is maintained by deen."); "DDNet is run by the DDNet staff (DDNet.tw/staff)");
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit", pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
"Many ideas from the great community,"); "Great maps and many ideas from the great community");
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit", pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
"Help and code by eeeee, HMH, east, CookieMichal, Learath2,"); "Help and code by eeeee, HMH, east, CookieMichal, Learath2,");
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit", pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
@ -33,8 +33,6 @@ void CGameContext::ConCredits(IConsole::IResult *pResult, void *pUserData)
"Based on DDRace by the DDRace developers,"); "Based on DDRace by the DDRace developers,");
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit", pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
"which is a mod of Teeworlds by the Teeworlds developers."); "which is a mod of Teeworlds by the Teeworlds developers.");
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "credit",
"Check the changes on ddnet.tw");
} }
void CGameContext::ConInfo(IConsole::IResult *pResult, void *pUserData) void CGameContext::ConInfo(IConsole::IResult *pResult, void *pUserData)
@ -47,11 +45,11 @@ void CGameContext::ConInfo(IConsole::IResult *pResult, void *pUserData)
"Git revision hash: " GIT_SHORTREV_HASH); "Git revision hash: " GIT_SHORTREV_HASH);
#endif #endif
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info", pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
"Official site: ddnet.tw"); "Official site: DDNet.tw");
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info", pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
"For more Info /cmdlist"); "For more info: /cmdlist");
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info", pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
"Or visit ddnet.tw"); "Or visit DDNet.tw");
} }
void CGameContext::ConHelp(IConsole::IResult *pResult, void *pUserData) void CGameContext::ConHelp(IConsole::IResult *pResult, void *pUserData)

View file

@ -919,7 +919,7 @@ void CGameContext::OnClientEnter(int ClientID)
SendChat(-1, CGameContext::CHAT_ALL, aBuf); SendChat(-1, CGameContext::CHAT_ALL, aBuf);
SendChatTarget(ClientID, "DDraceNetwork Mod. Version: " GAME_VERSION); SendChatTarget(ClientID, "DDraceNetwork Mod. Version: " GAME_VERSION);
SendChatTarget(ClientID, "please visit https://ddnet.tw or say /info for more info"); SendChatTarget(ClientID, "please visit DDNet.tw or say /info for more info");
if(g_Config.m_SvWelcome[0]!=0) if(g_Config.m_SvWelcome[0]!=0)
SendChatTarget(ClientID,g_Config.m_SvWelcome); SendChatTarget(ClientID,g_Config.m_SvWelcome);
@ -930,7 +930,7 @@ void CGameContext::OnClientEnter(int ClientID)
if (g_Config.m_SvShowOthersDefault) if (g_Config.m_SvShowOthersDefault)
{ {
if (g_Config.m_SvShowOthers) if (g_Config.m_SvShowOthers)
SendChatTarget(ClientID, "You can see other players. To disable this use the DDNet client and type /showothers ."); SendChatTarget(ClientID, "You can see other players. To disable this use DDNet client and type /showothers .");
m_apPlayers[ClientID]->m_ShowOthers = true; m_apPlayers[ClientID]->m_ShowOthers = true;
} }