]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 2a1fb2e2f8475a7dc791c57c05d961e4e6dc304f..e332e55ed80de06b3b4ce73e6fa2f063d1f4d8d0 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");