Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions data/goal_src/jak1/engine/target/target2.gc
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,10 @@
(send-event *camera* 'clear-entity)
(camera-change-to (the-as string 'base) 60 #f)
)
;; shift jak backwards slightly on unzoom, if stick is neutral
(when (zero? (-> *cpad-list* cpads 0 stick0-speed))
;; shift jak backwards slightly on unzoom, if jak is on some surface and stick is neutral
(when (and (logtest? (-> *target* control status) (cshape-moving-flags onsurf))
(zero? (-> *cpad-list* cpads 0 stick0-speed))
)
(let* ((camera-quat (new-stack-quaternion0))
(camera-z-vector (new-stack-vector0)))
;; convert the camera angle from a matrix to a quaternion (???)
Expand Down