Fix: running through quest expulsion

If a player was in the process of running past the quest leader when she
got expelled from the quest, she would continue running out of the quest
portal on the portal level.  Interrupt any running (or other multi-turn
action) when expelling the hero from the quest level.
This commit is contained in:
Michael Meyer
2022-06-10 10:51:15 -04:00
committed by PatR
parent b25961fb13
commit 721c4b77aa

View File

@@ -194,6 +194,7 @@ expulsion(boolean seal)
dest = (br->end1.dnum == u.uz.dnum) ? &br->end2 : &br->end1;
if (seal)
portal_flag |= UTOTYPE_RMPORTAL;
nomul(0); /* stop running */
schedule_goto(dest, portal_flag, (char *) 0, (char *) 0);
if (seal) { /* remove the portal to the quest - sealing it off */
int reexpelled = u.uevent.qexpelled;