mirror of
https://github.com/open-goal/jak-project
synced 2026-07-30 16:04:33 -04:00
jak1: fix mole crash on foot (#4294)
Another classic case of missing event args, though this one is fatal on PS2 as well.
This commit is contained in:
@@ -97,7 +97,6 @@
|
||||
(max-flee-rotation float))
|
||||
:allow-misaligned)
|
||||
|
||||
|
||||
(deftype fleeing-nav-enemy (nav-enemy)
|
||||
((last-reflection-time time-frame)
|
||||
(run-blend-interp float)
|
||||
@@ -108,7 +107,6 @@
|
||||
(:states
|
||||
fleeing-nav-enemy-debug))
|
||||
|
||||
|
||||
(defbehavior fleeing-nav-enemy-adjust-nav-info fleeing-nav-enemy ()
|
||||
(let ((f30-0 (vector-vector-distance (-> *camera* tpos-curr-adj) (-> *camera* tpos-old-adj))))
|
||||
;; og:preserve-this
|
||||
@@ -359,7 +357,6 @@
|
||||
lightning-mole-hiding
|
||||
lightning-mole-yelp))
|
||||
|
||||
|
||||
(defskelgroup *lightning-mole-sg*
|
||||
lightning-mole
|
||||
lightning-mole-lod0-jg
|
||||
@@ -614,13 +611,15 @@
|
||||
(defmethod attack-handler ((this lightning-mole) (arg0 process) (arg1 event-message-block))
|
||||
(send-event arg0 'get-attack-count 1)
|
||||
(when (!= (-> this state) lightning-mole-yelp)
|
||||
(send-event arg0 'jump 32768.0 32768.0)
|
||||
;; og:preserve-this fix missing event arg
|
||||
(send-event arg0 'jump 32768.0 32768.0 #f)
|
||||
(go lightning-mole-yelp))
|
||||
#t)
|
||||
|
||||
(defmethod touch-handler ((this lightning-mole) (arg0 process) (arg1 event-message-block))
|
||||
(when (!= (-> this state) lightning-mole-yelp)
|
||||
(send-event arg0 'jump 32768.0 32768.0)
|
||||
;; og:preserve-this fix missing event arg
|
||||
(send-event arg0 'jump 32768.0 32768.0 #f)
|
||||
(go lightning-mole-yelp))
|
||||
#t)
|
||||
|
||||
@@ -876,7 +875,6 @@
|
||||
peeper-up
|
||||
peeper-wait))
|
||||
|
||||
|
||||
(defstate peeper-wait (peeper)
|
||||
:event
|
||||
(behavior ((proc process) (argc int) (message symbol) (block event-message-block))
|
||||
|
||||
Reference in New Issue
Block a user