Skip to content

Commit

Permalink
jak3: fix cloth disappearing after 600 orbs (#3790)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Hat-Kid authored Dec 2, 2024
1 parent 477cefb commit e18dbb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions goal_src/jak3/engine/common-obs/cloth-art-h.gc
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e18dbb6

Please sign in to comment.