Skip to content

fix: standing next to a house no longer counts as being inside it - room floors are the floor triangles, not their bounding box - #573

Open
BoroBongo wants to merge 3 commits into
developfrom
fix/room-floor-exact
Open

BoroBongo wants to merge 3 commits into
developfrom
fix/room-floor-exact

Conversation

@BoroBongo

Copy link
Copy Markdown
Contributor

What

A room floor polygon marked every 0.5 m cell of its bounding box, so a slanted or L-shaped floor also took the street next to it. Measured in G2 Khorinis: 68 of 215 "smithy" cells around Harad's forge weren't his floor, and he sent the hero out while the hero stood at the forge.

A cell now counts when its center lies in one of the floor's triangles, at that triangle's height. On sloped floors the cells just above and below are also marked, so ramps don't flicker.

Why

Playtest: Harad and Brian sent the hero out of the house while he stood next to the forge.

How to test manually

  • G2 Khorinis: stand at Harad's forge, under the roof outside the house. Nobody says "what are you doing in here".
  • Walk into Harad's house through the door. He reacts at the door.
  • Walk in and out of a few G1 and G2 houses, and up a ramp inside a building. The room changes at the door, without flicker.

Save/load

Nothing saved; built at world load.

🤖 Generated with Claude Code

BoroBongo and others added 3 commits November 25, 2026 21:21
…oom floors are the floor triangles, not their bounding box

A room floor polygon marked every 0.5 m cell of its bounding box, so a slanted or L-shaped floor also took the street
next to it. G2 Khorinis: at Harad's forge the hero stood on such cells (68 of 215 around the forge), counted as in
the smithy (SCHMIED), and Harad and Brian sent him out. A cell now counts when its center lies in one of the
polygon's triangles, at that triangle's height.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eft behind after the new method

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a standing point on a slope no longer falls between the probes

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@BoroBongo

Copy link
Copy Markdown
Contributor Author

Review (architecture-reviewer + gothic-reviewer)

Architecture: fits. Gothic: OK to merge. Fixed:

  • Sloped floors. They also mark the cell above and below, so a room doesn't flicker on a ramp.

Kept on purpose:

  • Polygons narrower than a cell mark nothing. The neighbouring triangles cover the floor.

Editor check (G2 Khorinis smithy):

  • Room map around the forge: the 68 false SCHMIED cells next to the forge are gone.
  • Harad no longer sends the hero out at the forge. The author confirmed in play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant