lava effects while riding
- a case missed by the earlier lava patch, if you enter the lava while mounted, your steed would be unaffected if you were lifesaved - fix by making more code shared with the is_pool case
This commit is contained in:
+4
-4
@@ -1329,9 +1329,7 @@ boolean pick;
|
|||||||
stillinwater:;
|
stillinwater:;
|
||||||
if (!Levitation && !u.ustuck && !Flying) {
|
if (!Levitation && !u.ustuck && !Flying) {
|
||||||
/* limit recursive calls through teleds() */
|
/* limit recursive calls through teleds() */
|
||||||
if(is_lava(u.ux,u.uy) && lava_effects())
|
if (is_pool(u.ux, u.uy) || is_lava(u.ux, u.uy)) {
|
||||||
return;
|
|
||||||
if (is_pool(u.ux, u.uy)) {
|
|
||||||
#ifdef STEED
|
#ifdef STEED
|
||||||
if (u.usteed && !is_flyer(u.usteed->data) &&
|
if (u.usteed && !is_flyer(u.usteed->data) &&
|
||||||
!is_floater(u.usteed->data) &&
|
!is_floater(u.usteed->data) &&
|
||||||
@@ -1343,7 +1341,9 @@ stillinwater:;
|
|||||||
pick = FALSE;
|
pick = FALSE;
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
if (!Wwalking && drown())
|
if (is_lava(u.ux, u.uy)) {
|
||||||
|
if (lava_effects()) return;
|
||||||
|
} else if (!Wwalking && drown())
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user