Classic: fix fog/visibility on ceilings.

git-svn-id: https://svn.eduke32.com/eduke32@4455 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-04-22 18:10:19 +00:00
parent d23ca5bbc5
commit b7910b1bcf

View file

@ -4426,9 +4426,9 @@ static void grouscan(int32_t dax1, int32_t dax2, int32_t sectnum, char dastat)
int64_t lvis;
if (sec->visibility != 0) vis = mulscale4(vis, (uint8_t)(sec->visibility+16));
lvis = ((uint64_t)vis*daz) >> 13;
lvis = ((uint64_t)vis*daz) >> 13; // NOTE: lvis can be negative now!
lvis = (lvis * xdimscale) >> 16;
globvis = lvis > INT32_MAX ? INT32_MAX : lvis;
globvis = lvis;
}
j = FP_OFF(palookup[globalpal]);