Skip to content

Commit

Permalink
caught typo
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Jul 5, 2023
1 parent 34e29b1 commit 6fbf4af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bsp_tool/extensions/decompile_rbsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("*")])
Expand Down
2 changes: 1 addition & 1 deletion tests/test_D3DBsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 6fbf4af

Please sign in to comment.