From d3e0a9590cd78232ac2511f6e303faf6b4a0f3de Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 28 Mar 2021 15:12:43 +0200 Subject: [PATCH] - renderDrawMasks may only be called for Polymost. --- source/games/duke/src/render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/render.cpp b/source/games/duke/src/render.cpp index 56bb31cca..5012cd064 100644 --- a/source/games/duke/src/render.cpp +++ b/source/games/duke/src/render.cpp @@ -122,13 +122,13 @@ void animatecamsprite(double smoothratio) // Note: no ROR or camera here - Polymost has no means to detect these things before rendering the scene itself. renderDrawRoomsQ16(camera->x, camera->y, camera->z, ang.asq16(), IntToFixed(camera->shade), camera->sectnum); // why 'shade'...? fi.animatesprites(camera->x, camera->y, ang.asbuild(), smoothratio); + renderDrawMasks(); } else { render_drawrooms(camera, camera->pos, camera->sectnum, ang, buildhoriz(camera->shade), buildlook(0)); } display_mirror = 0; - renderDrawMasks(); }); renderRestoreTarget(); }