separate function for acid potion damage pr#1195

Also includes a couple of trailing whitespace removals.
This commit is contained in:
nhmall
2024-03-09 09:25:43 -05:00
parent 2bda94e982
commit 6d22361fca
2 changed files with 3 additions and 2 deletions

View File

@@ -2707,6 +2707,7 @@ remove a null sobj check from gold_detect that was situated after
adjust prototype in extern.h
check for valid indexes of def_monsyms[] and def_oc_syms[] in
choose_classes_menu() (pr #1179 by argrath)
split damage from acid potion into separate function (pr #1195 by argrath)
Code Cleanup and Reorganization

View File

@@ -4450,7 +4450,7 @@ acid_damage(struct obj *obj)
static void
pot_acid_damage(
struct obj *obj,
struct obj *obj,
boolean in_invent,
boolean described)
{
@@ -4777,7 +4777,7 @@ rnd_nextto_goodpos(coordxy *x, coordxy *y, struct monst *mtmp)
void
back_on_ground(boolean rescued)
{
const char *preposit = (Levitation || Flying) ? "over" : "on",
const char *preposit = (Levitation || Flying) ? "over" : "on",
*surf = surface(u.ux, u.uy), *you_are_back;
char icebuf[QBUFSZ];