From 6fbf4afda1f6b51e06b2f8375e66592ee05c50b8 Mon Sep 17 00:00:00 2001 From: snake-biscuits <36507175+snake-biscuits@users.noreply.github.com> Date: Wed, 5 Jul 2023 06:20:29 +0100 Subject: [PATCH] caught typo --- bsp_tool/extensions/decompile_rbsp.py | 2 +- tests/test_D3DBsp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"