Fix "low gravity" check
authorSamual Lenks <samual@xonotic.org>
Mon, 17 Feb 2014 03:33:27 +0000 (22:33 -0500)
committerSamual Lenks <samual@xonotic.org>
Mon, 17 Feb 2014 03:33:27 +0000 (22:33 -0500)
qcsrc/server/teamplay.qc

index 2a1fb2e..e332e55 100644 (file)
@@ -290,7 +290,7 @@ string getwelcomemessage(void)
        }
        if(autocvar_g_start_weapon_laser == 0)
                modifications = strcat(modifications, ", No start weapons");
-       if(autocvar_sv_gravity < 800)
+       if(cvar("sv_gravity") < stof(cvar_defstring("sv_gravity")))
                modifications = strcat(modifications, ", Low gravity");
        if(g_cloaked && !g_cts)
                modifications = strcat(modifications, ", Cloaked");