docs: one-way wall blocks the blind side (fix §5.1 inversion)

This commit is contained in:
2026-11-19 23:03:37 +01:00
parent 9fcbe885c1
commit cc566ee16e
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -688,7 +688,8 @@ explored_chunk(player_id, scene_id, cx, cy, bits BLOB, PRIMARY KEY(player_id, sc
inscribed 64-gon of radius R as range limit; sort by angle; each ray returns nearest hit among
wall segments (body faces for a thick wall) + circle segments; result = CCW polygon. The wall list
holds only walls whose sight switch is on; an open door and a window (`blocks_sight:false`) are
absent from it, and a one-way wall is skipped for a viewer on its blind side (5.8).
absent from it, and a one-way wall is skipped for a viewer on its seeing side — it blocks only
the blind side (5.8).
- **Explored**: `cellsTouched(poly, cell)` marks every grid cell that the polygon overlaps; union
into the player's explored set. The vertex-in-cell case is handled (bug log and its regression test:
TESTING §5.1).