From: Rudolf Polzer Date: Sat, 6 Nov 2010 22:41:13 +0000 (+0100) Subject: add a will/won't encrypt message to the server browser X-Git-Tag: xonotic-v0.1.0preview~187 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d2f8287ad70881aea79e61083c4659a402eb073e;p=xonotic%2Fxonotic-data.pk3dir.git add a will/won't encrypt message to the server browser --- diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.c b/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.c index b8b33c973..5f6262cf4 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.c @@ -198,19 +198,25 @@ void XonoticServerInfoDialog_loadServerInfo(entity me, float i) if(cvar("crypto_aeslevel") >= 3) me.currentServerEncrypt = "not supported (can't connect)"; else - me.currentServerEncrypt = "not supported"; + me.currentServerEncrypt = "not supported (won't encrypt)"; break; case 1: - me.currentServerEncrypt = "supported"; + if(cvar("crypto_aeslevel") >= 2) + me.currentServerEncrypt = "supported (will encrypt)"; + else + me.currentServerEncrypt = "supported (won't encrypt)"; break; case 2: - me.currentServerEncrypt = "requested"; + if(cvar("crypto_aeslevel") >= 1) + me.currentServerEncrypt = "requested (will encrypt)"; + else + me.currentServerEncrypt = "requested (won't encrypt)"; break; case 3: if(cvar("crypto_aeslevel") <= 0) me.currentServerEncrypt = "required (can't connect)"; else - me.currentServerEncrypt = "required"; + me.currentServerEncrypt = "required (will encrypt)"; break; } me.encryptLabel.setText(me.encryptLabel, me.currentServerEncrypt);