All pastes #927149 Raw Edit

ufo:ai brushbsp.c patch

public text v1 · immutable
·published 2008-03-04 01:30 UTC
rendered paste body
Index: brushbsp.c
===================================================================
--- brushbsp.c	(revision 15549)
+++ brushbsp.c	(working copy)
@@ -392,7 +392,7 @@
 	for (b = brushes; b; b = b->next) {
 		/* if the brush is solid and all of its sides are on nodes,
 		 * it eats everything */
-		if (b->original->contentFlags & CONTENTS_SOLID) {
+		if (b->original->contentFlags & CONTENTS_SOLID && !b->original->contentFlags & CONTENTS_PASSABLE) {
 			for (i = 0; i < b->numsides; i++)
 				if (b->sides[i].texinfo != TEXINFO_NODE)
 					break;