More informative version string error messages.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8418 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
957353dd28
commit
c41b9da86a
|
@ -1111,10 +1111,11 @@ static void recvVersionCheck()
|
||||||
|
|
||||||
sasprintf((char**)&msg, _("Player %u has the wrong game version. Auto kicking."), victim);
|
sasprintf((char**)&msg, _("Player %u has the wrong game version. Auto kicking."), victim);
|
||||||
sendTextMessage(msg, true);
|
sendTextMessage(msg, true);
|
||||||
|
sasprintf((char**)&msg, "you have the wrong version; update it! (You have [%s], we expect [%s].)", playersVersion, VersionString);
|
||||||
|
|
||||||
if (NetPlay.isHost)
|
if (NetPlay.isHost)
|
||||||
{
|
{
|
||||||
kickPlayer( victim, "you have the wrong version of the game, so Update it!", ERROR_WRONGVERSION );
|
kickPlayer( victim, msg, ERROR_WRONGVERSION );
|
||||||
|
|
||||||
// reset flags /time after we kick them
|
// reset flags /time after we kick them
|
||||||
NetPlay.players[victim].versionCheckTime = -1;
|
NetPlay.players[victim].versionCheckTime = -1;
|
||||||
|
@ -1148,7 +1149,7 @@ static void VersionCheckTimeOut(uint32_t victim)
|
||||||
|
|
||||||
if(NetPlay.isHost)
|
if(NetPlay.isHost)
|
||||||
{
|
{
|
||||||
kickPlayer( victim, "You have the wrong version of the game, so Update it!", ERROR_WRONGVERSION );
|
kickPlayer( victim, "you have the wrong version; update it! (Version string never received.)", ERROR_WRONGVERSION );
|
||||||
|
|
||||||
// reset flags /time after we kick them
|
// reset flags /time after we kick them
|
||||||
NetPlay.players[victim].versionCheckTime = -1;
|
NetPlay.players[victim].versionCheckTime = -1;
|
||||||
|
|
Loading…
Reference in New Issue