]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 9c2cfdbb732b9e97f53dc8e98c885c5727e61690..4306818f58948466ef885b8d691320b4f38d6867 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);
 }