OSDN Git Service

[Fix] #41149 落馬する確率が異常に高かったのを修正 / Resolved the issue that player frequently falls...
authorHourier <hourier@users.sourceforge.jp>
Sun, 17 Jan 2021 08:08:08 +0000 (17:08 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 17 Jan 2021 08:08:08 +0000 (17:08 +0900)
src/pet/pet-fall-off.c

index 7b57bd5..cad0425 100644 (file)
@@ -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++) {