miscellaneous formatting of zap.c

Just to clear zap.c modifications out of my working directory.
This commit is contained in:
PatR
2025-11-20 14:54:57 -08:00
parent 69886bd3d1
commit 6466b47fc1
+4 -5
View File
@@ -3828,8 +3828,8 @@ bhit(
boolean in_skip = FALSE, allow_skip = FALSE; boolean in_skip = FALSE, allow_skip = FALSE;
boolean tethered_weapon = FALSE; boolean tethered_weapon = FALSE;
int skiprange_start = 0, skiprange_end = 0, skipcount = 0; int skiprange_start = 0, skiprange_end = 0, skipcount = 0;
struct obj *was_returning = struct obj *was_returning = (iflags.returning_missile == obj) ? obj
(iflags.returning_missile == obj) ? obj : (struct obj *) 0; : (struct obj *) 0;
if (weapon == KICKED_WEAPON) { if (weapon == KICKED_WEAPON) {
/* object starts one square in front of player */ /* object starts one square in front of player */
@@ -4067,8 +4067,7 @@ bhit(
break; break;
} }
if (weapon != ZAPPED_WAND && weapon != INVIS_BEAM) { if (weapon != ZAPPED_WAND && weapon != INVIS_BEAM) {
/* 'I' present but no monster: erase */ /* 'I' present but no monster: erase; do this before tmp_at() */
/* do this before the tmp_at() */
if (glyph_is_invisible(levl[x][y].glyph) && cansee(x, y)) { if (glyph_is_invisible(levl[x][y].glyph) && cansee(x, y)) {
unmap_object(x, y); unmap_object(x, y);
newsym(x, y); newsym(x, y);
@@ -4719,7 +4718,7 @@ dobuzz(
int nd, /* damage strength ('number of dice') */ int nd, /* damage strength ('number of dice') */
coordxy sx, coordxy sy, /* starting point */ coordxy sx, coordxy sy, /* starting point */
int dx, int dy, /* direction delta */ int dx, int dy, /* direction delta */
boolean sayhit, boolean saymiss) /* announce out of sight hit/miss events if true */ boolean sayhit, boolean saymiss) /* report out of sight hit/miss events */
{ {
int range, fltyp = zaptype(type), damgtype = fltyp % 10; int range, fltyp = zaptype(type), damgtype = fltyp % 10;
coordxy lsx, lsy; coordxy lsx, lsy;