shithub: nanobsp

Download patch

ref: 753a8b5c4d51211c5e0ba4c1f0c108eb75e0bb01
parent: 3df8a2a60275255339785dfc0b874a5c38be595f
author: Andrew Apted <ajapted@gmail.com>
date: Sat Dec 9 13:50:36 EST 2023

use M_ClearBox() to initialize the bbox.

--- a/nano_bsp.c
+++ b/nano_bsp.c
@@ -90,10 +90,7 @@
 
 void BSP_BoundingBox (seg_t * soup, fixed_t * bbox)
 {
-	bbox[BOXLEFT]   = INT_MAX;
-	bbox[BOXBOTTOM] = INT_MAX;
-	bbox[BOXRIGHT]  = INT_MIN;
-	bbox[BOXTOP]    = INT_MIN;
+	M_ClearBox (bbox);
 
 	seg_t * S;
 	for (S = soup ; S != NULL ; S = S->next)
--