mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-04-29 09:31:11 +00:00
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:
parent
968efda8ed
commit
ce94a82b9d
1 changed files with 3 additions and 0 deletions
|
@ -730,6 +730,9 @@ void R_DrawViewModel (void)
|
||||||
|| !currententity->model)
|
|| !currententity->model)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// this is a HACK! --KB
|
||||||
|
modelalpha = currententity->alpha;
|
||||||
|
|
||||||
// hack the depth range to prevent view model from poking into walls
|
// hack the depth range to prevent view model from poking into walls
|
||||||
glDepthRange (gldepthmin, gldepthmin + 0.3*(gldepthmax-gldepthmin));
|
glDepthRange (gldepthmin, gldepthmin + 0.3*(gldepthmax-gldepthmin));
|
||||||
R_DrawAliasModel (currententity);
|
R_DrawAliasModel (currententity);
|
||||||
|
|
Loading…
Reference in a new issue