Handle gone portal when going back in quest

This commit is contained in:
Pasi Kallinen
2020-03-10 21:49:38 +02:00
parent ae471e71b2
commit f664e83070

View File

@@ -1507,12 +1507,11 @@ boolean at_stairs, falling, portal;
break; break;
if (!ttrap) { if (!ttrap) {
if (u.uevent.qexpelled && Is_qstart(&u.uz0)) { if (u.uevent.qexpelled
/* we're coming back from the quest home level, after && (Is_qstart(&u.uz0) || Is_qstart(&u.uz))) {
already getting expelled once. The portal back doesn't /* we're coming back from or going into the quest home level,
exist anymore - see expulsion(). This can only happen after already getting expelled once. The portal back
in wizmode. doesn't exist anymore - see expulsion(). */
*/
u_on_rndspot(0); u_on_rndspot(0);
} else { } else {
panic("goto_level: no corresponding portal!"); panic("goto_level: no corresponding portal!");