mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Add notification for old client
This commit is contained in:
parent
fda12b88bf
commit
517f1a80ea
|
@ -362,6 +362,8 @@ void CPlayer::OnPredictedInput(CNetObj_PlayerInput *NewInput)
|
||||||
{
|
{
|
||||||
if(m_ClientVersion <= VERSION_DDNET_OLD)
|
if(m_ClientVersion <= VERSION_DDNET_OLD)
|
||||||
GameServer()->SendBroadcast("Get the client from ddnet.tw to use all features on DDNet.", m_ClientID);
|
GameServer()->SendBroadcast("Get the client from ddnet.tw to use all features on DDNet.", m_ClientID);
|
||||||
|
if(m_ClientVersion < CLIENT_VERSIONNR)
|
||||||
|
GameServer()->SendBroadcast("Your client version is old. Update it for new features!", m_ClientID);
|
||||||
m_FirstPacket = false;
|
m_FirstPacket = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue