diff --git a/bsp_tool/extensions/decompile_rbsp.py b/bsp_tool/extensions/decompile_rbsp.py index 6d55c5ac..5dbf0795 100644 --- a/bsp_tool/extensions/decompile_rbsp.py +++ b/bsp_tool/extensions/decompile_rbsp.py @@ -134,7 +134,7 @@ def decompile(bsp, map_filename: str, editor: str = "TrenchBroom"): out.extend([f"// brush {i}" + "\n", *brush_valve_220(bsp, brush, editor)]) out.append("}\n") # end worldspawn # entities - # NOTE: *.bsp.0000.bsp_lump + brush entites; skipping .ents to keep filesize manageable + # NOTE: *.bsp.0000.bsp_lump + brush entities; skipping .ents to keep filesize manageable included_ents = bsp.ENTITIES[1:] for ent_file in ("env", "fx", "script", "snd", "spawn"): included_ents.extend([e for e in getattr(bsp, f"ENTITIES_{ent_file}") if e.get("model", "").startswith("*")]) diff --git a/tests/test_D3DBsp.py b/tests/test_D3DBsp.py index 97daf15f..bdc7dc1d 100644 --- a/tests/test_D3DBsp.py +++ b/tests/test_D3DBsp.py @@ -14,5 +14,5 @@ def test_no_errors(bsp): @pytest.mark.parametrize("bsp", bsps.values(), ids=bsps.keys()) -def test_entites_loaded(bsp): +def test_entities_loaded(bsp): assert bsp.ENTITIES[0]["classname"] == "worldspawn"