fix #H6203 - jumping over water doesn't
Accidentally caused by my grappling hook fix 2 months ago, attempting to jump over water made hero enter that water and drown (or crawl out). hurtle_step() was originally intended to be used for recoil while levitating, but it is used in other situations where not levitating and behavior for the two circumstances should be different. This doesn't fix things properly, just gets jumping working again.
This commit is contained in:
@@ -1769,10 +1769,10 @@ int magic; /* 0=Physical, otherwise skill level */
|
||||
temp = -temp;
|
||||
if (range < temp)
|
||||
range = temp;
|
||||
(void) walk_path(&uc, &cc, hurtle_step, (genericptr_t) &range);
|
||||
/* hurtle_step results in (u.ux, u.uy) == (cc.x, cc.y) and usually
|
||||
* moves the ball if punished, but does not handle all the effects
|
||||
* of landing on the final position.
|
||||
(void) walk_path(&uc, &cc, hurtle_jump, (genericptr_t) &range);
|
||||
/* hurtle_jump -> hurtle_step results in <u.ux,u.uy> == <cc.x,cc.y>
|
||||
* and usually moves the ball if punished, but does not handle all
|
||||
* the effects of landing on the final position.
|
||||
*/
|
||||
teleds(cc.x, cc.y, FALSE);
|
||||
sokoban_guilt();
|
||||
|
||||
Reference in New Issue
Block a user