mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
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:
parent
d23ca5bbc5
commit
b7910b1bcf
1 changed files with 2 additions and 2 deletions
|
@ -4426,9 +4426,9 @@ static void grouscan(int32_t dax1, int32_t dax2, int32_t sectnum, char dastat)
|
||||||
int64_t lvis;
|
int64_t lvis;
|
||||||
|
|
||||||
if (sec->visibility != 0) vis = mulscale4(vis, (uint8_t)(sec->visibility+16));
|
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;
|
lvis = (lvis * xdimscale) >> 16;
|
||||||
globvis = lvis > INT32_MAX ? INT32_MAX : lvis;
|
globvis = lvis;
|
||||||
}
|
}
|
||||||
|
|
||||||
j = FP_OFF(palookup[globalpal]);
|
j = FP_OFF(palookup[globalpal]);
|
||||||
|
|
Loading…
Reference in a new issue