X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fteamplay.qc;h=d991794b75b69e9107c48577fe89602821a291bd;hb=af376cc21c7130e4d62257778b6f08fb03056120;hp=d8bf72cd6b2a87bc27cc3700053716840c3bd8b3;hpb=3b3ab82082c3eb59a452cf42958d6bbdf686f66a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index d8bf72cd6..d991794b7 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 { @@ -351,7 +351,7 @@ void GetTeamCounts(entity ignore) cb1 = cb1 + bvalue; } } - if(t == NUM_TEAM_2) + else if(t == NUM_TEAM_2) { if(c2 >= 0) { @@ -359,7 +359,7 @@ void GetTeamCounts(entity ignore) cb2 = cb2 + bvalue; } } - if(t == NUM_TEAM_3) + else if(t == NUM_TEAM_3) { if(c3 >= 0) { @@ -367,7 +367,7 @@ void GetTeamCounts(entity ignore) cb3 = cb3 + bvalue; } } - if(t == NUM_TEAM_4) + else if(t == NUM_TEAM_4) { if(c4 >= 0) {