From b7910b1bcf43f26b7ce1400df7e9e03d695c4a11 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Tue, 22 Apr 2014 18:10:19 +0000 Subject: [PATCH] Classic: fix fog/visibility on ceilings. git-svn-id: https://svn.eduke32.com/eduke32@4455 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index eb36289de..4e65af406 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -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]);