mirror of
https://github.com/open-goal/jak-project
synced 2026-09-09 12:14:10 -04:00
[decomp] improve types around enter-state (#923)
* clean up * restore hack
This commit is contained in:
@@ -5301,6 +5301,7 @@
|
||||
)
|
||||
|
||||
;; definition for function cam-layout-init
|
||||
;; INFO: Return type mismatch object vs none.
|
||||
(defbehavior cam-layout-init cam-layout ()
|
||||
(set! (-> self res-key) (-> (new 'static 'array float 1 -1000000000.0) 0))
|
||||
(set! (-> self num-entities) 0)
|
||||
|
||||
+10
-10
@@ -157,16 +157,15 @@
|
||||
:virtual #t
|
||||
:event
|
||||
(behavior ((arg0 process) (arg1 int) (arg2 symbol) (arg3 event-message-block))
|
||||
(let ((v1-0 arg2))
|
||||
(the-as object (when (= v1-0 'abort)
|
||||
(when (logtest? (-> self flags) 1)
|
||||
(logior! (-> self flags) 2)
|
||||
(if (= (-> self anim-name type) string)
|
||||
(go-virtual pov-camera-abort)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(case arg2
|
||||
(('abort)
|
||||
(when (logtest? (-> self flags) 1)
|
||||
(logior! (-> self flags) 2)
|
||||
(if (= (-> self anim-name type) string)
|
||||
(go-virtual pov-camera-abort)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
:enter
|
||||
@@ -328,6 +327,7 @@
|
||||
)
|
||||
|
||||
;; definition for function pov-camera-init-by-other
|
||||
;; INFO: Return type mismatch object vs none.
|
||||
;; Used lq/sq
|
||||
(defbehavior
|
||||
pov-camera-init-by-other pov-camera
|
||||
|
||||
Reference in New Issue
Block a user