From: havoc Date: Fri, 30 Aug 2002 13:18:11 +0000 (+0000) Subject: weapon models were not being lit in maps using .lights X-Git-Tag: RELEASE_0_2_0_RC1~285 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=44dbf66cc62e367650e0b0af3ed641fb8deaf15b;p=xonotic%2Fdarkplaces.git weapon models were not being lit in maps using .lights git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2319 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 9c2cfdbb..4306818f 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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); }