Restrict the teleportation notification to actual teleportations

teleds() is used for more than just teleportations, the teleportation message
was also given when mounting a steed.

Trying out a new bit flags method parameter design pattern.
This commit is contained in:
Patric Mueller
2020-01-11 12:24:02 +01:00
parent 7c3ae74c27
commit 38fa93df73
9 changed files with 31 additions and 24 deletions

View File

@@ -353,7 +353,7 @@ boolean force; /* Quietly force this animal */
g.unweapon = FALSE;
u.usteed = mtmp;
remove_monster(mtmp->mx, mtmp->my);
teleds(mtmp->mx, mtmp->my, TRUE);
teleds(mtmp->mx, mtmp->my, TELEDS_ALLOW_DRAG);
g.context.botl = TRUE;
return TRUE;
}
@@ -645,7 +645,7 @@ int reason; /* Player was thrown off etc. */
* teleds() clears u.utrap
*/
g.in_steed_dismounting = TRUE;
teleds(cc.x, cc.y, TRUE);
teleds(cc.x, cc.y, TELEDS_ALLOW_DRAG);
g.in_steed_dismounting = FALSE;
/* Put your steed in your trap */