With cavern_gen existing, it is potentially the case that the map as a whole has a height other than DUNGEON_HGT, and a width other than DUNGEON_WID. And not just "if level is zero, it could be TOWN_HGT".
Two options suggest themselves:
1. Modify cavern_gen to use DUNGEON_HGT and DUNGEON_WID for caverns, too, even if the actual cavern is then centered inside that.
2. Track down basically all uses of DUNGEON_HGT and fix them.
Two options suggest themselves:
1. Modify cavern_gen to use DUNGEON_HGT and DUNGEON_WID for caverns, too, even if the actual cavern is then centered inside that.
2. Track down basically all uses of DUNGEON_HGT and fix them.
Comment