DFP Bug Details

@vampiress@eigenmagic.net

Content warning: DFP Bug Details

Dungeons of Freeport 1.0.8 is up on the beta branch now. QA is going over it now so it'll go live in a few hours, hopefully before too many Europeans or Americans find the bugged dungeon.

The weird thing about the bug, in the end was this: it was, like all good** bugs are, a cascade failure.

The entry stairs were placed in an invalid place. By happenstance, the exit stairs were not in an ideal place either, so a backup routine kicked in, trying to pick a new place for the downwards stairs. However, it could NEVER connect any tile to the entry stairs so... it failed silently, resulting in a dungeon.

Then there was another bug in the tester - it presumed a level with entry stairs and no exit stairs must be a bottom level, and didn't have contiguity to test between stairs.

So I not only fixed the actual two minor issues that collided to form this, but added a new test to ensure that levels which SHOULD have both stairs do indeed have both stairs, rather than just presuming they were the bottom level and leaving them be.