X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=clvm_cmds.c;h=03f3af9bf9096b1c1d3d2b0edfd1cd5a3a1a4a25;hb=0e6bd6de5aa017acce8df1e8ece2fe5c48d44e4c;hp=6e6efed86c491d6584a214f7a0871dc9a47b36a2;hpb=93aadab2b3dc04d31969cd7a000d0c43573d8913;p=xonotic%2Fdarkplaces.git diff --git a/clvm_cmds.c b/clvm_cmds.c index 6e6efed8..03f3af9b 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -681,7 +681,7 @@ static void VM_CL_getlight (void) //============================================================================ //[515]: SCENE MANAGER builtins -extern qboolean CSQC_AddRenderEdict (prvm_edict_t *ed);//csprogs.c +extern qboolean CSQC_AddRenderEdict (prvm_edict_t *ed, int edictnum);//csprogs.c static void CSQC_R_RecalcView (void) { @@ -750,7 +750,7 @@ void VM_CL_R_AddEntities (void) continue; if(!((int)ed->fields.client->drawmask & drawmask)) continue; - CSQC_AddRenderEdict(ed); + CSQC_AddRenderEdict(ed, i); } // callprofile fixing hack: do not include this time in what is counted for CSQC_UpdateView @@ -762,7 +762,7 @@ void VM_CL_R_AddEntity (void) { double t = Sys_DoubleTime(); VM_SAFEPARMCOUNT(1, VM_CL_R_AddEntity); - CSQC_AddRenderEdict(PRVM_G_EDICT(OFS_PARM0)); + CSQC_AddRenderEdict(PRVM_G_EDICT(OFS_PARM0), 0); prog->functions[prog->funcoffsets.CSQC_UpdateView].totaltime -= Sys_DoubleTime() - t; }