Files
nethack/include
Pasi Kallinen b2c071bc66 Fix rare door in corner of room bug
There were couple reports of doors being generated in a corner
of a room.  This happened for randomly generated irregular rooms,
because the code that was deciding if a corridor starting or
ending location was good did not handle irregular rooms at all.

This changes the corridor code so it can now generate start and
end points properly for any valid position in irregular rooms,
instead of only on the edges.  This means the corridor sometimes
meanders a bit more than before, because it tries to find
the end point away from the edge of the room rectangle.

Also added is sanity checking for the randomly generated rooms
and corridors level, testing for door placement and room connectivity.

And another fix for a rare special case where dig_corridor
created a zero-tile long corridor; the entrance door was placed,
but there was nothing behind it.

Fixes github #1269 and #1385
2025-03-16 09:46:53 +02:00
..
2022-02-04 11:01:20 -05:00
2022-03-13 13:58:56 -07:00
2022-11-29 21:53:21 -05:00
2024-12-15 09:53:50 -05:00
2022-06-30 23:48:18 -04:00
2024-12-20 10:32:38 -05:00
2024-09-06 13:08:07 -07:00
2023-03-01 14:00:29 +02:00
2024-10-12 14:56:36 -04:00
2021-01-26 21:06:16 -05:00
2024-12-19 18:18:11 -08:00
2025-03-16 09:46:53 +02:00
2024-10-05 15:55:20 -04:00
2024-07-07 17:34:37 -07:00
2024-09-06 13:08:07 -07:00
2022-06-19 02:30:45 -07:00
2025-02-04 15:16:42 -05:00
2024-09-06 13:08:07 -07:00
2024-02-24 13:49:51 -08:00
2025-01-12 14:08:15 -05:00
2024-12-20 10:32:38 -05:00
2024-09-06 13:08:07 -07:00
2024-11-26 20:57:11 -08:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2023-10-16 09:11:05 -04:00
2024-03-07 11:01:04 -05:00
2024-02-28 20:15:56 -08:00
2024-09-06 13:08:07 -07:00
2024-03-07 11:01:04 -05:00
2024-08-17 11:19:45 -07:00
2024-11-13 09:07:10 -05:00
2023-11-22 16:01:58 -05:00
2020-08-12 16:15:28 -07:00
2025-01-19 21:55:36 -05:00
2024-06-15 19:04:57 +03:00
2024-12-20 10:32:38 -05:00
2024-12-20 10:32:38 -05:00
2024-09-06 13:08:07 -07:00
2022-06-30 23:48:18 -04:00
2025-01-04 23:38:34 -05:00
2025-01-04 19:01:34 -05:00
2025-01-04 23:38:34 -05:00
2025-03-05 08:55:27 -05:00
2025-02-28 11:37:05 -08:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2024-11-26 20:57:11 -08:00