shithub: nanobsp

Download patch

ref: 630c118915d8fc8ca8a776254f363ed9334b6b24
parent: 3a12c859b22fe4d70c1bf3eb7697f286dad55191
author: Andrew Apted <ajapted@gmail.com>
date: Sat Dec 9 08:35:34 EST 2023

basic method to determine sector of a BSP leaf.

--- a/nano_bsp.c
+++ b/nano_bsp.c
@@ -143,7 +143,9 @@
 	nnode_t   * N   = BSP_NewNode ();
 
 	sub->segs = soup;
-	sub->sector = &sectors[0];  // FIXME
+
+	// TODO: better algo, try to avoid self-ref lines
+	sub->sector = soup->frontsector;
 
 	N->sub = sub;
 	return N;
--