Skip to content

Commit

Permalink
more fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
water111 committed Jan 20, 2025
1 parent 9ecc97c commit 32dd164
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion goal_src/jak3/engine/target/target-death.gc
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,8 @@
)
)
(let ((s5-5 (level-get *level* (-> arg0 level))))
(when s5-5
;; og:preserve-this don't wait for vis if level doesn't have it
(when (and s5-5 (-> s5-5 vis-info 0))
(while (and (-> *level* vis?) (-> s5-5 vis-info 0) (= (-> s5-5 all-visible?) 'loading))
(suspend)
)
Expand Down
3 changes: 2 additions & 1 deletion goal_src/jak3/levels/common/enemy/hover/hover-nav-control.gc
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,8 @@
(defmethod hover-nav-control-method-10 ((this hover-nav-control) (arg0 vector) (arg1 vector) (arg2 vector))
(vector-copy! (-> this dest-pos) arg0)
(cond
(arg2
;; og:preserve-this condition has been changed from `arg2` because some places call this method with #t as arg2
((and (!= arg2 #t) arg2) ; arg2
(vector-copy! (-> this dest-vel) arg2)
(vector-copy! (-> this root transv) arg2)
)
Expand Down
4 changes: 2 additions & 2 deletions goal_src/jak3/levels/factory/car/hvehicle.gc
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@
)
(set! (-> arg0 steering) (analog-input (the-as int (-> *cpad-list* cpads 0 leftx)) 128.0 48.0 110.0 -1.0))
(set! (-> arg0 lean-z) (analog-input (the-as int (-> *cpad-list* cpads 0 lefty)) 128.0 48.0 110.0 -1.0))
(set! (-> arg0 throttle) (fmin 1.0 (* 0.023529412 (the float (-> *cpad-list* cpads 0 abutton 6)))))
(set! (-> arg0 brake) (fmin 1.0 (* 0.023529412 (the float (-> *cpad-list* cpads 0 abutton 7)))))
(set! (-> arg0 throttle) (fmin 1.0 (* 0.023529412 (the float (-> *cpad-list* cpads 0 abutton (abutton-idx x)))))) ;; og:preserve-this abutton indexing
(set! (-> arg0 brake) (fmin 1.0 (* 0.023529412 (the float (-> *cpad-list* cpads 0 abutton (abutton-idx square)))))) ;; og:preserve-this abutton indexing
(when (or (cpad-hold? 0 l1) (and (logtest? (-> this info flags) 2048) (cpad-hold? 0 r1)))
(if (logtest? (-> this info flags) 16)
(logior! (-> arg0 flags) (vehicle-controls-flag vcf0))
Expand Down

0 comments on commit 32dd164

Please sign in to comment.