mirror of
https://github.com/open-goal/jak-project
synced 2026-09-09 20:21:28 -04:00
[decompiler] fix (gpr->fpr when an integer arg is converted to float (#482)
* fix gpr fpr bug * remove unused variable
This commit is contained in:
@@ -180,8 +180,7 @@
|
||||
(defun
|
||||
analog-input
|
||||
((in int) (offset float) (center-val float) (max-val float) (out-range float))
|
||||
(let* ((in (gpr->fpr in))
|
||||
(offset-in (- (the float in) offset))
|
||||
(let* ((offset-in (- (the float in) offset))
|
||||
(magnitude (- (fabs offset-in) center-val))
|
||||
(max-magnitude (- max-val center-val))
|
||||
)
|
||||
@@ -367,7 +366,3 @@
|
||||
;; failed to figure out what this is:
|
||||
(let ((v0-4 0))
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user