From 6d22361fcad98e5a152e4ed058808ff6fddeeb01 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 9 Mar 2024 09:25:43 -0500 Subject: [PATCH] separate function for acid potion damage pr#1195 Also includes a couple of trailing whitespace removals. --- doc/fixes3-7-0.txt | 1 + src/trap.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 7424ecb3c..06ad89ddf 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -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 diff --git a/src/trap.c b/src/trap.c index dca4fc736..46cf717a8 100644 --- a/src/trap.c +++ b/src/trap.c @@ -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];