]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - csprogs.c
Fix two pieces of code that did not compile with PRVM_64.
[xonotic/darkplaces.git] / csprogs.c
index 8d54fc0fabc0007f8eb72139ab645cb61a4b24bb..3e609ea898936d8922b524c861cc7c74b7ca3bb1 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -295,6 +295,7 @@ qboolean CSQC_AddRenderEdict(prvm_edict_t *ed, int edictnum)
        float scale;
        entity_render_t *entrender;
        dp_model_t *model;
+       prvm_vec3_t modellight_origin;
 
        model = CL_GetModelFromEdict(ed);
        if (!model)
@@ -348,7 +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
-       CL_GetTagMatrix(prog, &entrender->matrix, ed, 0, entrender->custommodellight_origin);
+       VectorCopy(modellight_origin, entrender->custommodellight_origin);
+       CL_GetTagMatrix(prog, &entrender->matrix, ed, 0, modellight_origin);
 
        // set up the animation data
        VM_GenerateFrameGroupBlend(prog, ed->priv.server->framegroupblend, ed);