]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
cvars are now instanced in &cvars_all as a tracking mechanism, there is also &cvars_n...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Jan 2020 04:15:01 +0000 (04:15 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Jan 2020 04:15:01 +0000 (04:15 +0000)
commit6f10cbc0e758254cc200332fd61f96d7cc972a48
treef973a3d94e3f25dbe5f1ecc1387b51a266c27657
parentc38d0d2d6409d9b3174b6cf04f1bd09694cbfc81
cvars are now instanced in &cvars_all as a tracking mechanism, there is also &cvars_null if one wishes for no expansion to occur (e.g. client commands received on the server are very untrusted).

cvars now have CVAR_CLIENT and CVAR_SERVER flags, dedicated server can only see CVAR_SERVER variables whereas client can see both because it could start a server.

cvars created via VMs will have the corresponding flag set (client vm and menu vm can see both CVAR_CLIENT and CVAR_SERVER, server vm can only see CVAR_SERVER - may cause issues with singleplayer mods, we'll see).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12501 d7cf8633-e32d-0410-b094-e92efae38249
55 files changed:
cap_ogg.c
cd_shared.c
cl_demo.c
cl_input.c
cl_main.c
cl_parse.c
cl_particles.c
cl_screen.c
cl_video.c
cmd.c
cmd.h
collision.c
common.c
console.c
crypto.c
csprogs.c
cvar.c
cvar.h
fs.c
ft2.c
gl_backend.c
gl_draw.c
gl_rmain.c
gl_rsurf.c
gl_textures.c
host.c
host_cmd.c
jpeg.c
keys.c
libcurl.c
menu.c
model_alias.c
model_brush.c
model_shared.c
model_sprite.c
netconn.c
palette.c
progsvm.h
prvm_cmds.c
prvm_edict.c
r_explosion.c
r_lightning.c
r_shadow.c
r_sky.c
sbar.c
snd_main.c
sv_main.c
sys_shared.c
taskqueue.c
utf8lib.c
vid_sdl.c
vid_shared.c
view.c
world.c
zone.c