fix: handle collmap geoms when dumping IW4 physcollmaps (#1055)

* fix: handle collmap geoms when dumping IW4 physcollmaps

* chore: mention invalid brush data for broken collmap geom types

---------

Co-authored-by: Jan Laupetin <[email protected]>
This commit is contained in:
elliotandJan Laupetin authored and GitHub committed 2026-11-14 11:51:55 +01:00
1 parent 9fbdac971a
commit 737cfecf6d
1 file changed
+5 -2
@@ -36,8 +36,12 @@ namespace phys_collmap
switch (geom.type)
{
case PHYS_GEOM_NONE:
case PHYS_GEOM_COLLMAP:
// TODO: Dump BrushWrapper (probably GJK related)
mapFileDumper.WriteComment("TODO: Brush data");
if (geom.brushWrapper)
mapFileDumper.WriteComment("TODO: Brush data");
else
mapFileDumper.WriteComment("Invalid brush data");
break;
case PHYS_GEOM_BOX:
mapFileDumper.WritePhysicsBox({
@@ -60,7 +64,6 @@ namespace phys_collmap
case PHYS_GEOM_BRUSHMODEL:
case PHYS_GEOM_BRUSH:
case PHYS_GEOM_COLLMAP:
case PHYS_GEOM_CAPSULE:
case PHYS_GEOM_GLASS:
default: