Dismounting a trapped steed

Riding a steed into a trap and dismounting also untrapped
the steed. Try to keep the steed in the trap.
This commit is contained in:
Pasi Kallinen
2023-04-17 18:47:01 +03:00
parent 945e65a19f
commit cfe60aed8d

View File

@@ -634,6 +634,13 @@ dismount_steed(
/* Release the steed and saddle */
u.usteed = 0;
u.ugallop = 0L;
if (u.utraptype == TT_BEARTRAP
|| u.utraptype == TT_PIT
|| u.utraptype == TT_WEB) {
mtmp->mtrapped = 1;
}
/*
* rloc(), rloc_to(), and monkilled()->mondead()->m_detach() all
* expect mtmp to be on the map or else have mtmp->mx be 0, but