mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 20:21:38 +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)
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue