diff --git a/goal_src/jak2/engine/level/region.gc b/goal_src/jak2/engine/level/region.gc index 77678774c2..578ed7b95e 100644 --- a/goal_src/jak2/engine/level/region.gc +++ b/goal_src/jak2/engine/level/region.gc @@ -85,7 +85,7 @@ (defmethod debug-draw-region ((this drawable-region-prim) (arg0 int)) (#when PC_PORT - (when (and *debug-region-hide-empty* (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) + (when (and *debug-region-hide-empty* (nonzero? (-> this region)) (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) ;; no scripts to run means the region is "empty" so do not render (unless enabled) (return 0))) (local-vars (sv-32 vector2h) (sv-36 vector)) @@ -247,7 +247,7 @@ otherwise, add the [[drawable-region-sphere]] to `region-start-prim-list` and in (defmethod debug-draw-region ((this drawable-region-sphere) (arg0 int)) (#when PC_PORT - (when (and *debug-region-hide-empty* (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) + (when (and *debug-region-hide-empty* (nonzero? (-> this region)) (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) ;; no scripts to run means the region is "empty" so do not render (unless enabled) (return 0))) (let ((t9-0 (method-of-type drawable-region-prim debug-draw-region))) @@ -294,7 +294,7 @@ otherwise, add the [[drawable-region-sphere]] to `region-start-prim-list` and in (defmethod debug-draw-region ((this drawable-region-face) (arg0 int)) (#when PC_PORT - (when (and *debug-region-hide-empty* (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) + (when (and *debug-region-hide-empty* (nonzero? (-> this region)) (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) ;; no scripts to run means the region is "empty" so do not render (unless enabled) (return 0))) (when (zero? arg0) @@ -421,7 +421,7 @@ otherwise, add the [[drawable-region-sphere]] to `region-start-prim-list` and in (defmethod debug-draw-region ((this drawable-region-volume) (arg0 int)) (#when PC_PORT - (when (and *debug-region-hide-empty* (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) + (when (and *debug-region-hide-empty* (nonzero? (-> this region)) (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) ;; no scripts to run means the region is "empty" so do not render (unless enabled) (return 0))) (let ((t9-0 (method-of-type drawable-region-prim debug-draw-region))) diff --git a/goal_src/jak3/engine/level/region.gc b/goal_src/jak3/engine/level/region.gc index ac11de3918..48a1fef95d 100644 --- a/goal_src/jak3/engine/level/region.gc +++ b/goal_src/jak3/engine/level/region.gc @@ -203,7 +203,7 @@ (defmethod debug-draw-region ((this drawable-region-sphere) (arg0 int)) (#when PC_PORT - (when (and *debug-region-hide-empty* (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) + (when (and *debug-region-hide-empty* (nonzero? (-> this region)) (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) ;; no scripts to run means the region is "empty" so do not render (unless enabled) (return 0))) (let ((t9-0 (method-of-type drawable-region-prim debug-draw-region))) @@ -242,7 +242,7 @@ (defmethod debug-draw-region ((this drawable-region-face) (arg0 int)) (#when PC_PORT - (when (and *debug-region-hide-empty* (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) + (when (and *debug-region-hide-empty* (nonzero? (-> this region)) (not (or (-> this region on-enter) (-> this region on-exit) (-> this region on-inside)))) ;; no scripts to run means the region is "empty" so do not render (unless enabled) (return 0))) (when (zero? arg0)