Commit cc71b79
committed
Fix: mdig_tunnel wasn't returning TRUE for digging monster's death
Apparently in the change which excised mb_trapped for doors, so too was
any code path which returned true from this function.
While I was figuring out where exactly to return true from it, I also
decided to restructure this bit of code. Instead of one large if
statement for the monster not being dead, it merely returns true early
if the monster is dead. It also checks if interacting with a door trap
made the door no longer closed, in which case the digging attempt is
aborted.1 parent 11872b6 commit cc71b79
1 file changed
+18
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1464 | 1464 | | |
1465 | 1465 | | |
1466 | 1466 | | |
1467 | | - | |
| 1467 | + | |
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
1471 | 1471 | | |
1472 | 1472 | | |
1473 | | - | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
1477 | | - | |
1478 | | - | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
1482 | | - | |
1483 | | - | |
1484 | | - | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
1485 | 1489 | | |
1486 | | - | |
| 1490 | + | |
1487 | 1491 | | |
1488 | 1492 | | |
1489 | 1493 | | |
| |||
0 commit comments