]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Actually, use a more simple comparison (looks cleaner, easier to understand)
authorSamual Lenks <samual@xonotic.org>
Mon, 30 Dec 2013 19:01:18 +0000 (14:01 -0500)
committerSamual Lenks <samual@xonotic.org>
Mon, 30 Dec 2013 19:01:18 +0000 (14:01 -0500)
qcsrc/menu/xonotic/util.qc

index 28987529a639edd2a5743311229c3e081446bdc2..9f56bf64344b55f2120788e2aaf7f708a71c3696 100644 (file)
@@ -89,7 +89,7 @@ void saveCvarsMulti(entity me)
        for(i = 0; i < n; ++i)
        {
                if(substring(argv(i), 0, 1) == "!")
-                       cvar_set(substring(argv(i), 1, strlen(argv(i))), ftos(!stof(s)));
+                       cvar_set(substring(argv(i), 1, strlen(argv(i))), ((s == "0") ? "1" : "0"));
                else
                        cvar_set(argv(i), s);
        }