Magic portals and levitation boots

From a bug report.  Removing levitation boots while hovering over
a magic portal causes the portal to be delayed since it takes time to
remove the boots.  This causes the portal to be taken via unmul in allmain.
At that point, the will activation message display but you won't teleport
until you type something.  Handle the delayed goto after unmul completes.
This commit is contained in:
cohrs
2002-08-05 00:57:21 +00:00
parent 132586f0b9
commit a61e68069a
2 changed files with 7 additions and 2 deletions

View File

@@ -283,10 +283,13 @@ moveloop()
/* when immobile, count is in turns */
if(multi < 0) {
if (++multi == 0) /* finished yet? */
if (++multi == 0) { /* finished yet? */
unmul((char *)0);
/* if unmul caused a level change, take it now */
if (u.utotype) deferred_goto();
}
}
}
}
} while (youmonst.movement<NORMAL_SPEED); /* hero can't move loop */
/******************************************/