]> de.git.xonotic.org Git - xonotic/darkplaces.git/commit
now autocvars can have default values when the progs are compiled with fteqcc
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Dec 2009 13:09:55 +0000 (13:09 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Dec 2009 13:09:55 +0000 (13:09 +0000)
commit5e1c576d8b6050a26e8f6f6a967105b2dd74b0a7
tree7b31b51aa774bfb00cdaaf59b19bb3c4eeef39cb
parent5ffa042a0c81e451526b1e1219f557fa27196b08
now autocvars can have default values when the progs are compiled with fteqcc
or a similar compiler:

var float autocvar_foo = 3;
var string autocvar_whatever = "foo";

will create the cvar with value 3, or foo, if it does not exist, and otherwise
take over the value from the cvar into the global.

NOTE: THE var KEYWORD IS NECESSARY HERE! NOT USING IT MEANS THE COMPILER WILL
MERGE WITH CONSTANTS, AND YIELD VERY UNFUNNY RESULTS!

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9544 d7cf8633-e32d-0410-b094-e92efae38249
prvm_edict.c