From e18dbb625629a9b22e6634754d52c19030b360eb Mon Sep 17 00:00:00 2001 From: Hat Kid <6624576+Hat-Kid@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:43:41 +0100 Subject: [PATCH] jak3: fix cloth disappearing after 600 orbs (#3790) After collecting 600 orbs, cloth systems that didn't have any `alt-tex-name`s defined would vanish because the `static-cloth-params` macro doesn't default them to `#f`. --- goal_src/jak3/engine/common-obs/cloth-art-h.gc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/goal_src/jak3/engine/common-obs/cloth-art-h.gc b/goal_src/jak3/engine/common-obs/cloth-art-h.gc index 0527fa11e58..f0f982b114e 100644 --- a/goal_src/jak3/engine/common-obs/cloth-art-h.gc +++ b/goal_src/jak3/engine/common-obs/cloth-art-h.gc @@ -135,6 +135,9 @@ (defmacro static-cloth-params (ag-name args) `(let ((parms (new 'static 'cloth-params))) + (false! (-> parms alt-tex-name)) + (false! (-> parms alt-tex-name2)) + (false! (-> parms alt-tex-name3)) ,@(apply (lambda (x) (if (and (eq? (car x) 'mesh) (not (integer? (cadr x)))) `(set! (-> parms ,(car x)) ,(art-elt-index ag-name (cadr x))) `(set! (-> parms ,(car x)) ,(cadr x))