From 7e8ef99ec989152f4c4b398192e3bec30558b654 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 28 Mar 2021 13:38:27 +0200 Subject: [PATCH] - fixed view height in Duke. --- source/games/duke/src/render.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/games/duke/src/render.cpp b/source/games/duke/src/render.cpp index 810672e88..df03977a0 100644 --- a/source/games/duke/src/render.cpp +++ b/source/games/duke/src/render.cpp @@ -69,6 +69,7 @@ BEGIN_DUKE_NS void renderView(spritetype* playersprite, int sectnum, int x, int y, int z, binangle a, fixedhoriz h, lookangle rotscrnang, int smoothratio) { + z -= -(4 << 8); if (!testnewrenderer) { // do screen rotation. @@ -76,7 +77,7 @@ void renderView(spritetype* playersprite, int sectnum, int x, int y, int z, bina se40code(x, y, z, a, h, smoothratio); renderMirror(x, y, z, a, h, smoothratio); - renderDrawRoomsQ16(x, y, z - (4 << 8), a.asq16(), h.asq16(), sectnum); + renderDrawRoomsQ16(x, y, z, a.asq16(), h.asq16(), sectnum); fi.animatesprites(x, y, a.asbuild(), smoothratio); renderDrawMasks(); }