From eb5bb2b989f58b92758f86cd197c729a897ce052 Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 27 Jul 2023 13:11:22 -0700 Subject: [PATCH] weapon.c formatting bit Fix some overly-wide lines. I didn't look through the file for other stuff that might need reformatting. --- src/weapon.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/weapon.c b/src/weapon.c index d862102c6..fceb750ff 100644 --- a/src/weapon.c +++ b/src/weapon.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 weapon.c $NHDT-Date: 1646688071 2022/03/07 21:21:11 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.100 $ */ +/* NetHack 3.7 weapon.c $NHDT-Date: 1690488665 2023/07/27 20:11:05 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.111 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2011. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1251,19 +1251,23 @@ enhance_weapon_skill(void) (void) skill_level_name(i, sklnambuf); if (wizard) { if (!iflags.menu_tab_sep) - Snprintf(buf, sizeof(buf), " %s%-*s %-12s %5d(%4d)", prefix, + Snprintf(buf, sizeof buf, + " %s%-*s %-12s %5d(%4d)", prefix, longest, P_NAME(i), sklnambuf, P_ADVANCE(i), practice_needed_to_advance(P_SKILL(i))); else - Snprintf(buf, sizeof(buf), " %s%s\t%s\t%5d(%4d)", prefix, P_NAME(i), + Snprintf(buf, sizeof buf, + " %s%s\t%s\t%5d(%4d)", prefix, P_NAME(i), sklnambuf, P_ADVANCE(i), practice_needed_to_advance(P_SKILL(i))); } else { if (!iflags.menu_tab_sep) - Snprintf(buf, sizeof(buf), " %s %-*s [%s]", prefix, longest, + Snprintf(buf, sizeof buf, + " %s %-*s [%s]", prefix, longest, P_NAME(i), sklnambuf); else - Snprintf(buf, sizeof(buf), " %s%s\t[%s]", prefix, P_NAME(i), + Snprintf(buf, sizeof buf, + " %s%s\t[%s]", prefix, P_NAME(i), sklnambuf); } any.a_int = can_advance(i, speedy) ? i + 1 : 0;