]> granicus.if.org Git - nethack/commitdiff
status hilite bits
authorcohrs <cohrs>
Thu, 22 Feb 2007 16:19:04 +0000 (16:19 +0000)
committercohrs <cohrs>
Thu, 22 Feb 2007 16:19:04 +0000 (16:19 +0000)
I noticed an unused array and missing ifdef in generic hilite code.

src/botl.c

index acc8f1ea80a072203b45bea0bcd7080b91fd272f..9761fdffdda28fdd70e4fa943d0c5e1797107c3b 100644 (file)
@@ -1343,7 +1343,6 @@ const char *fieldnm[MAXBLSTATS];
 const char *fieldfmt[MAXBLSTATS];
 char *vals[MAXBLSTATS];
 boolean activefields[MAXBLSTATS];
-struct hilite_s hilites[MAXBLSTATS];
 NEARDATA winid WIN_STATUS;
 
 void
@@ -1386,6 +1385,7 @@ boolean enable;
        activefields[fieldidx] = enable;
 }
 
+# ifdef STATUS_HILITES
 void
 genl_status_threshold(fldidx, thresholdtype, threshold, behavior, under, over)
 int fldidx,thresholdtype;
@@ -1394,6 +1394,7 @@ anything threshold;
 {
        
 }
+# endif /* STATUS_HILITES */
 
 void
 genl_status_update(idx, ptr, chg, percent)