Fixed view entity - its alpha was never getting set so a stray dlight or

something could (and did in all my tests) make viewmodel go away..  That
sucked, but it's fixed now.
This commit is contained in:
Joseph Carter 2000-07-01 05:54:12 +00:00
parent 968efda8ed
commit ce94a82b9d

View file

@ -730,6 +730,9 @@ void R_DrawViewModel (void)
|| !currententity->model)
return;
// this is a HACK! --KB
modelalpha = currententity->alpha;
// hack the depth range to prevent view model from poking into walls
glDepthRange (gldepthmin, gldepthmin + 0.3*(gldepthmax-gldepthmin));
R_DrawAliasModel (currententity);