With r_usenewshade 3, do apply starting fog dist. eqn. for negative shade.

git-svn-id: https://svn.eduke32.com/eduke32@4403 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-03-30 13:53:03 +00:00
parent 5d2ef07986
commit e7d0c0abcb

View file

@ -555,7 +555,7 @@ static inline void fogcalc(int32_t tile, int32_t shade, int32_t vis, int32_t pal
return; return;
} }
fogresult = (r_usenewshading == 3) ? 0 : -(FOGDISTCONST * shade)/combvis; fogresult = (r_usenewshading == 3 && shade > 0) ? 0 : -(FOGDISTCONST * shade)/combvis;
fogresult2 = (FOGDISTCONST * (numshades-1-shade))/combvis; fogresult2 = (FOGDISTCONST * (numshades-1-shade))/combvis;
} }
} }