removed CL_UpdateEntities call in CSQC rendering code
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Feb 2007 15:57:21 +0000 (15:57 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Feb 2007 15:57:21 +0000 (15:57 +0000)
commit4b2c4ce4eabdbba55cb94a0b23122e447ec42782
tree09b18be3d83c7ed8719ea0a60e35ad0e760c74c9
parentfb64bd19d99d9081f5bbd68ac2d0351be62df866
removed CL_UpdateEntities call in CSQC rendering code
changed r_refdef.lights from dlight_t * to rtlight_t (no longer a pointer)
modified CL_UpdateLights to setup the r_refdef.lights[] entry instead of merely pointing to the rtlight_t in the dlight_t struct
changed csqc dlight handling to comply with the spec (R_ClearScene resets r_refdef.numlights, then VM_R_AddEntities adds all engine-based entities and lights)
moved single-frame dlight spawning for rocket glow and such from CL_UpdateNetworkEntity to CL_LinkNetworkEntity (which is called by VM_R_AddEntities)
replaced all single-frame uses of CL_AllocDLight with R_RTLight_Update(&r_refdef.lights[r_refdef.numlights++], ...) calls, this includes lights such as muzzleflash, rocket glow, .glow_size lights, tenebrae dlights, etc
renamed CL_AllocDlight to CL_AllocLightFlash
renamed CL_DecayLights to CL_DecayLightFlashes
renamed CL_UpdateLights to CL_RelinkLightFlashes
renamed CL_ParticleEffect to CL_ParticleTrail and added spawndlight/spawnparticles boolean parameters, then added a CL_ParticleEffect which calls this with true for both
removed cubemapnum field from dlight_t

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6809 d7cf8633-e32d-0410-b094-e92efae38249
cl_main.c
cl_parse.c
cl_particles.c
client.h
clvm_cmds.c
csprogs.c
r_light.c
r_shadow.c
r_shadow.h