weapon models were not being lit in maps using .lights
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 30 Aug 2002 13:18:11 +0000 (13:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 30 Aug 2002 13:18:11 +0000 (13:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2319 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 9c2cfdb..4306818 100644 (file)
@@ -502,12 +502,10 @@ void R_DrawViewModel (void)
 
        ent = &cl.viewent.render;
        Mod_CheckLoaded(ent->model);
-
        R_LerpAnimation(ent);
-
        Matrix4x4_CreateFromQuakeEntity(&ent->matrix, ent->origin[0], ent->origin[1], ent->origin[2], -ent->angles[0], ent->angles[1], ent->angles[2], ent->scale);
        Matrix4x4_Invert_Simple(&ent->inversematrix, &ent->matrix);
-
+       R_UpdateEntLights(ent);
        ent->model->Draw(ent);
 }