From 61d6be186b5552d3a1ff8ff791cce142526f1834 Mon Sep 17 00:00:00 2001 From: Hourier Date: Sun, 17 Jan 2021 17:08:08 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#41149=20=E8=90=BD=E9=A6=AC=E3=81=99?= =?utf8?q?=E3=82=8B=E7=A2=BA=E7=8E=87=E3=81=8C=E7=95=B0=E5=B8=B8=E3=81=AB?= =?utf8?q?=E9=AB=98=E3=81=8B=E3=81=A3=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE?= =?utf8?q?=E6=AD=A3=20/=20Resolved=20the=20issue=20that=20player=20frequen?= =?utf8?q?tly=20falls=20off=20the=20horse?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/pet/pet-fall-off.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pet/pet-fall-off.c b/src/pet/pet-fall-off.c index 7b57bd598..cad042504 100644 --- a/src/pet/pet-fall-off.c +++ b/src/pet/pet-fall-off.c @@ -101,7 +101,8 @@ bool process_fall_off_horse(player_type *creature_ptr, HIT_POINT dam, bool force return FALSE; if (dam >= 0 || force) { - calc_fall_off_possibility(creature_ptr, dam, force, r_ptr); + if (!calc_fall_off_possibility(creature_ptr, dam, force, r_ptr)) + return FALSE; /* Check around the player */ for (DIRECTION i = 0; i < 8; i++) { -- 2.11.0