Get rid of force_mintrap, allow passing flags to mintrap
It uses the same flags as dotrap, so simulate force_mintrap by passing FORCETRAP flag.
This commit is contained in:
@@ -616,7 +616,7 @@ keepdogs(boolean pets_only) /* true for ascension or final escape */
|
||||
&& !(mtmp->mstrategy & STRAT_WAITFORU)) {
|
||||
stay_behind = FALSE;
|
||||
if (mtmp->mtrapped)
|
||||
(void) mintrap(mtmp); /* try to escape */
|
||||
(void) mintrap(mtmp, NO_TRAP_FLAGS); /* try to escape */
|
||||
if (mtmp == u.usteed) {
|
||||
/* make sure steed is eligible to accompany hero */
|
||||
mtmp->mtrapped = 0; /* escape trap */
|
||||
|
||||
Reference in New Issue
Block a user