U29 - mounting steed gets thru tight spots
Mounting a steed would work even when done diagonally at a doorway, such as a shop door. Use test_move to check for all such moves and disallow the mount in this case.
This commit is contained in:
@@ -227,6 +227,8 @@ fix impossible when hitting/jousting a monster causes it to be killed twice
|
|||||||
fix a GOLDOBJ crash/hang in take_gold() that could be triggered by reading a
|
fix a GOLDOBJ crash/hang in take_gold() that could be triggered by reading a
|
||||||
cursed spellbook, or by sitting on a throne
|
cursed spellbook, or by sitting on a throne
|
||||||
kicking a tree could produce 0 to 4 killer bees but it should have been 1 to 5
|
kicking a tree could produce 0 to 4 killer bees but it should have been 1 to 5
|
||||||
|
mounting a steed allowed hero to make moves that would otherwise be disallowed
|
||||||
|
including mounting diagonally in a shop doorway
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+3
-2
@@ -230,8 +230,9 @@ mount_steed(mtmp, force)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Can the player reach and see the monster? */
|
/* Can the player reach and see the monster? */
|
||||||
if (u.uswallow || u.ustuck || u.utrap || Punished) {
|
if (u.uswallow || u.ustuck || u.utrap || Punished ||
|
||||||
if (Punished)
|
!test_move(u.ux, u.uy, mtmp->mx-u.ux, mtmp->my-u.uy, TEST_MOVE)) {
|
||||||
|
if (Punished || !(u.uswallow || u.ustuck || u.utrap))
|
||||||
You("are unable to swing your %s over.", body_part(LEG));
|
You("are unable to swing your %s over.", body_part(LEG));
|
||||||
else
|
else
|
||||||
You("are stuck here for now.");
|
You("are stuck here for now.");
|
||||||
|
|||||||
Reference in New Issue
Block a user