From: Samual Lenks Date: Mon, 30 Dec 2013 19:01:18 +0000 (-0500) Subject: Actually, use a more simple comparison (looks cleaner, easier to understand) X-Git-Tag: xonotic-v0.8.0~245 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=593186e3ee55f24dc70481f78b7a475b9682d661;p=xonotic%2Fxonotic-data.pk3dir.git Actually, use a more simple comparison (looks cleaner, easier to understand) --- diff --git a/qcsrc/menu/xonotic/util.qc b/qcsrc/menu/xonotic/util.qc index 28987529a..9f56bf643 100644 --- a/qcsrc/menu/xonotic/util.qc +++ b/qcsrc/menu/xonotic/util.qc @@ -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); }