pager warning fix and formatting

The mapglyph() change made a variable obsolete but it got left in
(idx = SYM_PET_OVERRIDE...).  Take it out and fix up the formatting
for the block of code that had it.
This commit is contained in:
PatR
2019-11-17 09:25:26 -08:00
parent 21e4595127
commit 9ea7b074fe
+5 -4
View File
@@ -1,4 +1,4 @@
/* NetHack 3.6 pager.c $NHDT-Date: 1573943502 2019/11/16 22:31:42 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.159 $ */ /* NetHack 3.6 pager.c $NHDT-Date: 1574011494 2019/11/17 17:24:54 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.161 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2018. */ /*-Copyright (c) Robert Patrick Rankin, 2018. */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
@@ -1039,9 +1039,10 @@ struct permonst **for_supplement;
for (j = SYM_OFF_X; j < SYM_MAX; ++j) { for (j = SYM_OFF_X; j < SYM_MAX; ++j) {
if (j == (SYM_INVISIBLE + SYM_OFF_X)) if (j == (SYM_INVISIBLE + SYM_OFF_X))
continue; /* already handled above */ continue; /* already handled above */
tmpsym = Is_rogue_level(&u.uz) ? ov_rogue_syms[j] : ov_primary_syms[j]; tmpsym = Is_rogue_level(&u.uz) ? ov_rogue_syms[j]
: ov_primary_syms[j];
if (tmpsym && sym == tmpsym) { if (tmpsym && sym == tmpsym) {
switch(j) { switch (j) {
case SYM_BOULDER + SYM_OFF_X: case SYM_BOULDER + SYM_OFF_X:
if (!found) { if (!found) {
*firstmatch = "boulder"; *firstmatch = "boulder";
@@ -1053,7 +1054,7 @@ struct permonst **for_supplement;
break; break;
case SYM_PET_OVERRIDE + SYM_OFF_X: case SYM_PET_OVERRIDE + SYM_OFF_X:
if (looked) { if (looked) {
int oc = 0, idx = SYM_PET_OVERRIDE + SYM_OFF_X; int oc = 0;
unsigned os = 0; unsigned os = 0;
/* convert to symbol without override in effect */ /* convert to symbol without override in effect */