fix github pull request #114 - ant holes in *.des

Fixes #114

Report and contributed fix described lack of support for room type
"ant hole" in the code that loads special levels (and mentioned that
none of our des files attempted to use that room type so it isn't
noticeable in unmodified version of the game).  The fix overlooked
a couple of other missing room types (leprechaun hall and cockatrice
nest) so I didn't use the pull-request's commit (so not sure what
github's automated updating will make of 'Fixes #114').
This commit is contained in:
PatR
2018-07-03 15:49:44 -07:00
parent 335e868865
commit a7daa522a4
2 changed files with 6 additions and 2 deletions

View File

@@ -58,6 +58,8 @@ when using 'O' to set hilite_status rules, hide the 'score' status field if
make stone-to-flesh behave the same on statues of petrified monsters as it
does on random 'dungeon art' ones (revive at a nearby spot instead of
becoming a corpse when there's already a monster at statue's location)
special level loader didn't support populating several types of special rooms
(ant hole, cockatrice nest, leprechaun hall)
Fixes to Post-3.6.1 Problems that Were Exposed Via git Repository

View File

@@ -786,10 +786,9 @@ link_doors_rooms()
void
fill_rooms()
{
int tmpi;
int tmpi, m;
for (tmpi = 0; tmpi < nroom; tmpi++) {
int m;
if (rooms[tmpi].needfill)
fill_room(&rooms[tmpi], (rooms[tmpi].needfill == 2));
for (m = 0; m < rooms[tmpi].nsubrooms; m++)
@@ -2452,6 +2451,9 @@ boolean prefilled;
case COURT:
case ZOO:
case BEEHIVE:
case ANTHOLE:
case COCKNEST:
case LEPREHALL:
case MORGUE:
case BARRACKS:
fill_zoo(croom);