mirror of
https://github.com/open-goal/jak-project
synced 2026-08-08 18:44:15 -04:00
clean up casts around conds with elses (#904)
This commit is contained in:
+19
-27
@@ -743,38 +743,30 @@
|
||||
)
|
||||
;; definition (debug) for function get-debug-line
|
||||
(defun-debug get-debug-line ()
|
||||
(the-as debug-line (cond
|
||||
((<
|
||||
(-> *debug-lines-trk* length)
|
||||
(-> *debug-lines-trk* allocated-length)
|
||||
)
|
||||
(+! (-> *debug-lines-trk* length) 1)
|
||||
(-> *debug-lines* (+ (-> *debug-lines-trk* length) -1))
|
||||
)
|
||||
(else
|
||||
(the-as debug-line #f)
|
||||
)
|
||||
)
|
||||
(cond
|
||||
((< (-> *debug-lines-trk* length) (-> *debug-lines-trk* allocated-length))
|
||||
(+! (-> *debug-lines-trk* length) 1)
|
||||
(-> *debug-lines* (+ (-> *debug-lines-trk* length) -1))
|
||||
)
|
||||
(else
|
||||
(the-as debug-line #f)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
;; definition (debug) for function get-debug-text-3d
|
||||
(defun-debug get-debug-text-3d ()
|
||||
(the-as debug-text-3d (cond
|
||||
((<
|
||||
(-> *debug-text-3d-trk* length)
|
||||
(-> *debug-text-3d-trk* allocated-length)
|
||||
)
|
||||
(+! (-> *debug-text-3d-trk* length) 1)
|
||||
(->
|
||||
*debug-text-3ds*
|
||||
(+ (-> *debug-text-3d-trk* length) -1)
|
||||
)
|
||||
)
|
||||
(else
|
||||
(the-as debug-text-3d #f)
|
||||
)
|
||||
)
|
||||
(cond
|
||||
((<
|
||||
(-> *debug-text-3d-trk* length)
|
||||
(-> *debug-text-3d-trk* allocated-length)
|
||||
)
|
||||
(+! (-> *debug-text-3d-trk* length) 1)
|
||||
(-> *debug-text-3ds* (+ (-> *debug-text-3d-trk* length) -1))
|
||||
)
|
||||
(else
|
||||
(the-as debug-text-3d #f)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user