X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=csprogs.c;h=68dbd8394cabd71119ad0dcf2df71ed339b1efa1;hb=2a794dbda8cba43c9ee35acb347afc87a7280c9a;hp=f0a01a2678c783f94d639616de86621d4a62a0c9;hpb=c045878e6948f00e52f17c9df6beefa2dfdfd868;p=xonotic%2Fdarkplaces.git diff --git a/csprogs.c b/csprogs.c index f0a01a26..68dbd839 100644 --- a/csprogs.c +++ b/csprogs.c @@ -349,8 +349,8 @@ qboolean CSQC_AddRenderEdict(prvm_edict_t *ed, int edictnum) // LadyHavoc: use the CL_GetTagMatrix function on self to ensure consistent behavior (duplicate code would be bad) // this also sets the custommodellight_origin for us - VectorCopy(modellight_origin, entrender->custommodellight_origin); CL_GetTagMatrix(prog, &entrender->matrix, ed, 0, modellight_origin); + VectorCopy(modellight_origin, entrender->custommodellight_origin); // set up the animation data VM_GenerateFrameGroupBlend(prog, ed->priv.server->framegroupblend, ed); @@ -486,6 +486,8 @@ qboolean CL_VM_UpdateView (double frametime) // CSQC_UpdateView function does not call R_ClearScene as it should r_refdef.scene.numentities = 0; r_refdef.scene.numlights = 0; + // polygonbegin without draw2d arg has to guess + prog->polygonbegin_guess2d = false; // pass in width and height as parameters (EXT_CSQC_1) PRVM_G_FLOAT(OFS_PARM0) = vid.width; PRVM_G_FLOAT(OFS_PARM1) = vid.height;