Skip to content

Commit

Permalink
g/j2: fix hud positioning when in mirror mode (#3630)
Browse files Browse the repository at this point in the history
  • Loading branch information
xTVaser authored Aug 10, 2024
1 parent a7d1336 commit 1ba3fa7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions goal_src/jak2/engine/ui/hud.gc
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
)
Expand Down

0 comments on commit 1ba3fa7

Please sign in to comment.