[game] fix daxter stuck face bug (#1409)

This commit is contained in:
water111 2022-06-02 21:45:09 -04:00 committed by GitHub
parent b173734e1b
commit 0c16d3c3d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,6 +242,14 @@
(set! (-> self draw shadow-joint-index) (the-as uint 6))
(set! (-> self draw shadow-ctrl) *target-shadow-control*)
(logior! (-> self skel status) (janim-status eye))
(#when PC_PORT
;; daxter can be killed mid-blerc, leaving blerc modifications in the merc data.
;; once sidekick is restarted, the blerc-done flag will be lost, so the modifications will
;; to work around this, just set blerc-done on spawn. it will run blerc with 0's on the
;; first frame when daxter is drawn, clearing blerc data.
(logior! (-> self skel status) (janim-status blerc-done))
)
(let ((v1-14 (-> self node-list data)))
(set! (-> v1-14 0 param0) cspace<-cspace+quaternion!)
(set! (-> v1-14 0 param1) (the-as basic (-> self parent-override 0 control unknown-cspace10 parent)))