1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-05-16 04:25:05 +01:00

Major bugfix: bones could load on the true Madman home level

This could break the quest in a variety of ways, and blocks further progression as a madman. The game might not technically be unwinnable but it is a totally different game now.
This commit is contained in:
ChrisANG 2024-06-04 16:10:42 -04:00
parent e344ba25e1
commit 2d266d796d

View file

@ -31,6 +31,8 @@ boolean recursed;
return (boolean)(((sptr = Is_special(lev)) != 0 && !sptr->boneid)
|| !dungeons[lev->dnum].boneid
/* no bones in the true madman home level */
|| (Role_if(PM_MADMAN) && qstart_level.dnum == lev->dnum && qlocate_level.dlevel == (lev->dlevel+1))
/* no bones in the branch level TO the Quest (because this portal can be voided) */
|| (!recursed && (bptr = Is_branchlev(lev)) && In_quest(branchlev_other_end(bptr, lev)))
/* no bones in a branch level if the other end is nobones */