X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fteamplay.qc;h=eadbe0f688f096666b2f0ed674174aa144619376;hp=985c683e8c2cc4d0dcd03fd42c3919fe0e041330;hb=050fb0011ae5fb2b36c7c7f3d560f9453807a8ab;hpb=264c9f48d418d1ebd4b5ef5868b85f92644917dc diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 985c683e8c..eadbe0f688 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -87,8 +87,8 @@ void InitGameplayMode() string GetClientVersionMessage(entity this) { - if (this.version_mismatch) { - if(this.version < autocvar_gameversion) { + if (CS(this).version_mismatch) { + if(CS(this).version < autocvar_gameversion) { return strcat("This is Xonotic ", autocvar_g_xonoticversion, "\n^3Your client version is outdated.\n\n\n### YOU WON'T BE ABLE TO PLAY ON THIS SERVER ###\n\n\nPlease update!!!^8"); } else { @@ -842,8 +842,7 @@ void SV_ChangeTeam(entity this, float _color) return; } - if (autocvar_g_campaign || (autocvar_g_changeteam_banned && this.wasplayer)) - { + if((autocvar_g_campaign) || (autocvar_g_changeteam_banned && CS(this).wasplayer)) { Send_Notification(NOTIF_ONE, this, MSG_INFO, INFO_TEAMCHANGE_NOTALLOWED); return; // changing teams is not allowed }