mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
DDNet Version notice
This commit is contained in:
parent
028d3d731f
commit
31629b15c1
|
@ -1781,7 +1781,7 @@ void CClient::VersionUpdate()
|
||||||
{
|
{
|
||||||
if(m_VersionInfo.m_State == CVersionInfo::STATE_INIT)
|
if(m_VersionInfo.m_State == CVersionInfo::STATE_INIT)
|
||||||
{
|
{
|
||||||
Engine()->HostLookup(&m_VersionInfo.m_VersionServeraddr, g_Config.m_ClVersionServer, m_NetClient.NetType());
|
Engine()->HostLookup(&m_VersionInfo.m_VersionServeraddr, g_Config.m_ClDDNetVersionServer, m_NetClient.NetType());
|
||||||
m_VersionInfo.m_State = CVersionInfo::STATE_START;
|
m_VersionInfo.m_State = CVersionInfo::STATE_START;
|
||||||
}
|
}
|
||||||
else if(m_VersionInfo.m_State == CVersionInfo::STATE_START)
|
else if(m_VersionInfo.m_State == CVersionInfo::STATE_START)
|
||||||
|
|
|
@ -1008,7 +1008,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("Teeworlds %s is out! Download it at www.teeworlds.com!"), 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
|
||||||
|
|
|
@ -40,6 +40,7 @@ MACRO_CONFIG_INT(ClShowWelcome, cl_show_welcome, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG
|
||||||
MACRO_CONFIG_INT(ClMotdTime, cl_motd_time, 10, 0, 100, CFGFLAG_CLIENT|CFGFLAG_SAVE, "How long to show the server message of the day")
|
MACRO_CONFIG_INT(ClMotdTime, cl_motd_time, 10, 0, 100, CFGFLAG_CLIENT|CFGFLAG_SAVE, "How long to show the server message of the day")
|
||||||
|
|
||||||
MACRO_CONFIG_STR(ClVersionServer, cl_version_server, 100, "version.teeworlds.com", CFGFLAG_CLIENT|CFGFLAG_SAVE, "Server to use to check for new versions")
|
MACRO_CONFIG_STR(ClVersionServer, cl_version_server, 100, "version.teeworlds.com", CFGFLAG_CLIENT|CFGFLAG_SAVE, "Server to use to check for new versions")
|
||||||
|
MACRO_CONFIG_STR(ClDDNetVersionServer, cl_ddnet_version_server, 100, "version.ddnet.tw", CFGFLAG_CLIENT|CFGFLAG_SAVE, "Server to use to check for new ddnet versions")
|
||||||
|
|
||||||
MACRO_CONFIG_STR(ClLanguagefile, cl_languagefile, 255, "", CFGFLAG_CLIENT|CFGFLAG_SAVE, "What language file to use")
|
MACRO_CONFIG_STR(ClLanguagefile, cl_languagefile, 255, "", CFGFLAG_CLIENT|CFGFLAG_SAVE, "What language file to use")
|
||||||
MACRO_CONFIG_INT(ClShowSpecialSkins, cl_show_special_skins, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show special skins in UI")
|
MACRO_CONFIG_INT(ClShowSpecialSkins, cl_show_special_skins, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show special skins in UI")
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
#include "generated/nethash.cpp"
|
#include "generated/nethash.cpp"
|
||||||
#define GAME_VERSION "0.6.2, 2.11"
|
#define GAME_VERSION "0.6.2, 2.11"
|
||||||
#define GAME_NETVERSION "0.6 626fce9a778df4d4"
|
#define GAME_NETVERSION "0.6 626fce9a778df4d4"
|
||||||
static const char GAME_RELEASE_VERSION[8] = {'0', '.', '6', '.', '2', 0};
|
static const char GAME_RELEASE_VERSION[8] = "2.11";
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue