]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/teamplay.qc
Port version_mismatch to ClientState
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / teamplay.qc
index d8bf72cd6b2a87bc27cc3700053716840c3bd8b3..51ad5edb93c16cc91250277f35b5bf4f0cc88690 100644 (file)
@@ -87,7 +87,7 @@ void InitGameplayMode()
 
 string GetClientVersionMessage(entity this)
 {
-       if (this.version_mismatch) {
+       if (CS(this).version_mismatch) {
                if(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");