mirror of
https://github.com/open-goal/jak-project
synced 2026-07-06 22:03:02 -04:00
b50b9eadb2
Fixes empty boxed arrays of strings breaking some decomp (`ctywide-speech` and `race-info`). Adds `decomp-as` tag to decompiler types so that the static data decompiler can use macros like `meters` and `seconds` on fields that aren't of type `meters` or `time-frame`. Adds `override` tag to decompiler types which overrides the type of field with that name. The type must be a child type of the original field's type (or the same type, but why would you do this?). Fixes the camera being offset for `drillmtn` after loading `palout` once. This is a huge refactor sadly.
38 lines
1.0 KiB
Common Lisp
38 lines
1.0 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: hal-task.gc
|
|
;; name in dgo: hal-task
|
|
;; dgos: SEB, SWB, LKIDDOGE, UNB, CTYKORA
|
|
|
|
;; DECOMP BEGINS
|
|
|
|
(defmethod reset-task! halt-wait-spot ((obj halt-wait-spot))
|
|
(set! (-> obj check-done) #f)
|
|
(set! (-> obj which-spot) 0)
|
|
(set! (-> obj num-spots) (the-as uint 1))
|
|
(none)
|
|
)
|
|
|
|
;; WARN: Return type mismatch symbol vs none.
|
|
(defmethod ai-task-method-11 halt-wait-spot ((obj halt-wait-spot) (arg0 bot))
|
|
(let ((s4-0 (-> obj which-spot)))
|
|
(if (logtest? *display-bot-marks* (bot-marks-controls bmc16))
|
|
(bot-debug-draw-spot-sphere
|
|
arg0
|
|
(the-as int (-> obj num-spots))
|
|
(the-as (pointer uint) (-> obj spot-indexes))
|
|
(the-as int (-> obj spot-indexes s4-0))
|
|
)
|
|
)
|
|
(mem-copy!
|
|
(the-as pointer (-> arg0 spot))
|
|
(the-as pointer (-> arg0 course spots (-> obj spot-indexes s4-0)))
|
|
20
|
|
)
|
|
)
|
|
(set! (-> arg0 root trans quad) (-> arg0 spot center quad))
|
|
((-> obj check-done) obj (the-as hal arg0))
|
|
(none)
|
|
)
|