mirror of
https://github.com/open-goal/jak-project
synced 2026-07-07 22:22:21 -04:00
[jak2/jak3] Fix off by one bug in trick display (#4224)
fixes #3150 the scoring system counts up to 16 (point-scoring) tricks, but the opengoal-secret display system was ignoring the 16th one, causing score discrepancies
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
(when (not (-> this combo-in-progress?))
|
||||
(set! (-> this combo-in-progress?) #t)
|
||||
(reset-combo! this))
|
||||
(when (< (-> this num-tricks-in-combo) 15)
|
||||
(when (< (-> this num-tricks-in-combo) 16)
|
||||
(set! (-> this tricks-in-combo (-> this num-tricks-in-combo)) trick)
|
||||
(set! (-> this num-tricks-in-combo) (inc (-> this num-tricks-in-combo)))
|
||||
(set! (-> this points-in-combo) (+ (-> this points-in-combo) points)))
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
(when (not (-> this combo-in-progress?))
|
||||
(set! (-> this combo-in-progress?) #t)
|
||||
(reset-combo! this))
|
||||
(when (< (-> this num-tricks-in-combo) 15)
|
||||
(when (< (-> this num-tricks-in-combo) 16)
|
||||
(set! (-> this tricks-in-combo (-> this num-tricks-in-combo)) trick)
|
||||
(set! (-> this num-tricks-in-combo) (inc (-> this num-tricks-in-combo)))
|
||||
(set! (-> this points-in-combo) (+ (-> this points-in-combo) points)))
|
||||
|
||||
Reference in New Issue
Block a user