From: Rudolf Polzer Date: Tue, 18 May 2010 18:44:37 +0000 (+0200) Subject: simplify autocvars ;) we now support savegames properly X-Git-Tag: xonotic-v0.1.0preview~602 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=edea7ba9bdba889334c97912a744fe2c4e5113c3;p=xonotic%2Fxonotic-data.pk3dir.git simplify autocvars ;) we now support savegames properly --- diff --git a/qcsrc/server/extensions.qh b/qcsrc/server/extensions.qh index 33973f8e0..18119546c 100644 --- a/qcsrc/server/extensions.qh +++ b/qcsrc/server/extensions.qh @@ -574,10 +574,8 @@ float(float a) tan = #475; // returns tangent value (which is simply sin(a)/cos( //changing the cvar or returning from progs is UNDEFINED. Writing to autocvar //globals is UNDEFINED. Accessing autocvar globals after cvar_set()ing that //cvar is IMPLEMENTATION DEFINED (an implementation may either yield the -//previous, or the current, value). Whether autocvar globals, after restoring -//a savegame, have the cvar's current value, or the original value at time of -//saving, is UNDEFINED. Restoring a savegame however must not restore the -//cvar values themselves. Writing to an autocvar global is NOT ALLOWED. +//previous, or the current, value). Writing to an autocvar global is NOT +//ALLOWED. //In case the cvar does NOT exist, then it is automatically created with the //value of the autocvar initializer, if given. This is possible with e.g. //frikqcc and fteqcc the following way: