From 30a0fcfe46fba0255edf9e9545dbefcb76fca9d1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers <coelckers@users.noreply.github.com> Date: Sat, 25 Jul 2020 09:02:47 +0200 Subject: [PATCH] - disable rotation for hud_drawpal. This was just a Build crutch to do x-flipping, with that being handled in the backend now the rotation angle must be 0. --- source/games/duke/src/hudweapon_d.cpp | 2 +- source/games/duke/src/hudweapon_r.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/hudweapon_d.cpp b/source/games/duke/src/hudweapon_d.cpp index 2e4c358eb..f00266caf 100644 --- a/source/games/duke/src/hudweapon_d.cpp +++ b/source/games/duke/src/hudweapon_d.cpp @@ -51,7 +51,7 @@ int getavel(int snum) inline static void hud_drawpal(double x, double y, int tilenum, int shade, int orientation, int p) { - hud_drawsprite(x, y, 65536, (orientation & 4) ? 1024 : 0, tilenum, shade, p, 2 | orientation); + hud_drawsprite(x, y, 65536, 0, tilenum, shade, p, 2 | orientation); } //--------------------------------------------------------------------------- diff --git a/source/games/duke/src/hudweapon_r.cpp b/source/games/duke/src/hudweapon_r.cpp index 6735f4edf..a4bf685f8 100644 --- a/source/games/duke/src/hudweapon_r.cpp +++ b/source/games/duke/src/hudweapon_r.cpp @@ -40,7 +40,7 @@ BEGIN_DUKE_NS inline static void hud_drawpal(double x, double y, int tilenum, int shade, int orientation, int p, int scale = 32768) { - hud_drawsprite(x, y, scale, (orientation & 4) ? 1024 : 0, tilenum, shade, p, 2 | orientation); + hud_drawsprite(x, y, scale, 0, tilenum, shade, p, 2 | orientation); } inline static void rdmyospal(double x, double y, int tilenum, int shade, int orientation, int p)