shithub: duke3d

Download patch

ref: 14beb90cff5951dab1eefb2457dbe4da9b349b39
parent: dd086a88177f7dca1a0a845959df7b44fc6d89d7
parent: bcdc4411c759e8722f3b5863901157a2f2eace85
author: Fabien <[email protected]>
date: Sat May 30 17:07:18 EDT 2015

Merge pull request #38 from rohit-n/fix-floor

Fix some floors being drawn too dark.

--- a/Engine/src/engine.c
+++ b/Engine/src/engine.c
@@ -987,7 +987,7 @@
     
     globvis = globalcisibility;
     if (sec->visibility != 0)
-        globvis = mulscale4(globvis,(int32_t)((sec->visibility+16)));
+        globvis = mulscale4(globvis,(int32_t)((uint8_t)(sec->visibility+16)));
     
     
     globalorientation = (int32_t)sec->floorstat;