]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
made cprogs.dat builtin #303 (setproperty) accept 1 parm, in this case it will return...
authorvortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 May 2010 21:05:13 +0000 (21:05 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 21 May 2010 21:10:57 +0000 (23:10 +0200)
commita5ed656030e8cbd085681268c9f9bfcae878704c
tree71576884974444cb6726cded3b19d8ef6a5524aa
parent0eae14440d49bf945ed2595f8c59d55b4690a6eb
made cprogs.dat builtin #303 (setproperty) accept 1 parm, in this case it will return a value of property stored in engine struct instead of setting it. Pretty useful with several viewports code + 2d drawing. Curently the only property that can't be returned is VF_VIEWPORT (will give a warning) as it stored in 2 vectors (VF_MIN and VF_SIZE). To use new feature define 2 more builtins:
float(float property) getproperty = #303;
vector(float property) getpropertyvec = #303;

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10197 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=515c01976be481f5d06169f193a7527fd567e83c
clvm_cmds.c