From 1ba3fa7cdad6e973b76910d9ed52950fd0a3f6a6 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Fri, 9 Aug 2024 23:24:13 -0400 Subject: [PATCH] g/j2: fix hud positioning when in mirror mode (#3630) Fixes #3627 ![image](https://github.com/user-attachments/assets/32bf500f-0679-47b4-b64f-f3de7a4f3fdf) --- goal_src/jak2/engine/ui/hud.gc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/goal_src/jak2/engine/ui/hud.gc b/goal_src/jak2/engine/ui/hud.gc index e181ad4d90..4bcd99e92d 100644 --- a/goal_src/jak2/engine/ui/hud.gc +++ b/goal_src/jak2/engine/ui/hud.gc @@ -588,10 +588,12 @@ (* (-> this icons v1-55 scale-x) (-> *video-params* relative-x-scale)) 1.0 ) - (if (-> *blit-displays-work* horizontal-flip-flag) - (set! (-> this icons v1-55 icon 0 root trans x) (the float (- 256 (-> this icons v1-55 pos 0)))) - (set! (-> this icons v1-55 icon 0 root trans x) (the float (+ (-> this icons v1-55 pos 0) -256))) - ) + ;; og:preserve-this not needed with how mirror mode is currently being done + ;; (if (-> *blit-displays-work* horizontal-flip-flag) + ;; (set! (-> this icons v1-55 icon 0 root trans x) (the float (- 256 (-> this icons v1-55 pos 0)))) + ;; (set! (-> this icons v1-55 icon 0 root trans x) (the float (+ (-> this icons v1-55 pos 0) -256))) + ;; ) + (set! (-> this icons v1-55 icon 0 root trans x) (the float (+ (-> this icons v1-55 pos 0) -256))) (set! (-> this icons v1-55 icon 0 root trans y) (the float (* (+ (-> this icons v1-55 pos 1) -208) 2))) (set! (-> this icons v1-55 icon 0 root trans z) (the float (-> this icons v1-55 pos 2))) )