mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
Fix for invisible gun and lightning. (cleanup after Endy)
This commit is contained in:
parent
a02481c08c
commit
e3d8266db8
2 changed files with 5 additions and 4 deletions
|
@ -720,16 +720,14 @@ R_DrawViewModel
|
|||
*/
|
||||
void R_DrawViewModel (void)
|
||||
{
|
||||
currententity = &cl.viewent;
|
||||
if (!r_drawviewmodel->value
|
||||
|| !Cam_DrawViewModel()
|
||||
|| envmap
|
||||
|| !r_drawentities->value
|
||||
|| (cl.stats[STAT_ITEMS] & IT_INVISIBILITY)
|
||||
|| cl.stats[STAT_HEALTH] <= 0)
|
||||
return;
|
||||
|
||||
currententity = &cl.viewent;
|
||||
if (!currententity->model)
|
||||
|| !currententity->model)
|
||||
return;
|
||||
|
||||
// hack the depth range to prevent view model from poking into walls
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue