Fix some warnings
Remove an unused variable, add missing FALLTHRUs, and use the same FALLTHRU wording where it wasn't recognized by gcc
This commit is contained in:
@@ -3300,10 +3300,12 @@ struct obj *obj;
|
||||
goto wanexpl;
|
||||
case WAN_FIRE:
|
||||
expltype = EXPL_FIERY;
|
||||
/*FALLTHRU*/
|
||||
case WAN_COLD:
|
||||
if (expltype == EXPL_MAGICAL)
|
||||
expltype = EXPL_FROSTY;
|
||||
dmg *= 2;
|
||||
/*FALLTHRU*/
|
||||
case WAN_MAGIC_MISSILE:
|
||||
wanexpl:
|
||||
explode(u.ux, u.uy, -(obj->otyp), dmg, WAND_CLASS, expltype);
|
||||
|
||||
@@ -1355,7 +1355,6 @@ int *colorptr;
|
||||
/* there are hilites set here */
|
||||
int max_pc = 0, min_pc = 100;
|
||||
int max_val = 0, min_val = LARGEST_INT;
|
||||
boolean changed = FALSE;
|
||||
boolean exactmatch = FALSE;
|
||||
|
||||
hl = blstats[idx][fldidx].thresholds;
|
||||
@@ -1382,14 +1381,11 @@ int *colorptr;
|
||||
case BL_TH_UPDOWN:
|
||||
if (chg < 0 && hl->rel == LT_VALUE) {
|
||||
merge_bestcolor(&bestcolor, hl->coloridx);
|
||||
changed = TRUE;
|
||||
} else if (chg > 0 && hl->rel == GT_VALUE) {
|
||||
merge_bestcolor(&bestcolor, hl->coloridx);
|
||||
changed = TRUE;
|
||||
} else if (hl->rel == EQ_VALUE && chg) {
|
||||
merge_bestcolor(&bestcolor, hl->coloridx);
|
||||
min_val = max_val = hl->value.a_int;
|
||||
changed = TRUE;
|
||||
}
|
||||
break;
|
||||
case BL_TH_VAL_ABSOLUTE:
|
||||
|
||||
@@ -4118,7 +4118,8 @@ register char *cmd;
|
||||
break;
|
||||
case NHKF_RUN2:
|
||||
if (!Cmd.num_pad)
|
||||
break; /* else FALLTHRU */
|
||||
break;
|
||||
/*FALLTHRU*/
|
||||
case NHKF_RUN:
|
||||
if (movecmd(lowc(cmd[1]))) {
|
||||
context.run = 3;
|
||||
@@ -4128,7 +4129,8 @@ register char *cmd;
|
||||
break;
|
||||
case NHKF_FIGHT2:
|
||||
if (!Cmd.num_pad)
|
||||
break; /* else FALLTHRU */
|
||||
break;
|
||||
/*FALLTHRU*/
|
||||
/* Effects of movement commands and invisible monsters:
|
||||
* m: always move onto space (even if 'I' remembered)
|
||||
* F: always attack space (even if 'I' not remembered)
|
||||
@@ -4527,14 +4529,16 @@ const char *msg;
|
||||
break;
|
||||
case NHKF_RUN2:
|
||||
if (!Cmd.num_pad)
|
||||
break; /* else FALLTHRU */
|
||||
break;
|
||||
/*FALLTHRU*/
|
||||
case NHKF_RUN:
|
||||
case NHKF_RUN_NOPICKUP:
|
||||
dothat = "run";
|
||||
break;
|
||||
case NHKF_FIGHT2:
|
||||
if (!Cmd.num_pad)
|
||||
break; /* else FALLTHRU */
|
||||
break;
|
||||
/*FALLTHRU*/
|
||||
case NHKF_FIGHT:
|
||||
dothat = "fight";
|
||||
how = ""; /* avoid "fight at yourself" */
|
||||
|
||||
@@ -391,6 +391,7 @@ xchar worm_tail; /* mon is actually a worm tail */
|
||||
default:
|
||||
impossible("display_monster: bad m_ap_type value [ = %d ]",
|
||||
(int) mon->m_ap_type);
|
||||
/*FALLTHRU*/
|
||||
case M_AP_NOTHING:
|
||||
show_glyph(x, y, mon_to_glyph(mon));
|
||||
break;
|
||||
|
||||
+3
-1
@@ -846,6 +846,7 @@ dokick()
|
||||
pline("%s burps loudly.", Monnam(u.ustuck));
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
Your("feeble kick has no effect.");
|
||||
break;
|
||||
@@ -1327,7 +1328,8 @@ schar loc;
|
||||
} else if (In_endgame(&u.uz) || Is_botlevel(&u.uz)) {
|
||||
cc->y = cc->x = 0;
|
||||
break;
|
||||
} /* else fall to the next cases */
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case MIGR_STAIRS_UP:
|
||||
case MIGR_LADDER_UP:
|
||||
cc->x = u.uz.dnum;
|
||||
|
||||
@@ -957,6 +957,7 @@ boolean hitsroof;
|
||||
Your("%s fails to protect you.", helm_simple_name(uarmh));
|
||||
goto petrify;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case CREAM_PIE:
|
||||
case BLINDING_VENOM:
|
||||
pline("You've got it all over your %s!", body_part(FACE));
|
||||
@@ -2014,6 +2015,7 @@ boolean in_view;
|
||||
default: /* glass or crystal wand */
|
||||
if (obj->oclass != WAND_CLASS)
|
||||
impossible("breaking odd object?");
|
||||
/*FALLTHRU*/
|
||||
case CRYSTAL_PLATE_MAIL:
|
||||
case LENSES:
|
||||
case MIRROR:
|
||||
|
||||
+1
-1
@@ -2597,7 +2597,7 @@ recalc_mapseen()
|
||||
}
|
||||
if (is_drawbridge_wall(x, y) < 0)
|
||||
break;
|
||||
/* else FALLTHRU */
|
||||
/*FALLTHRU*/
|
||||
case DBWALL:
|
||||
case DRAWBRIDGE_DOWN:
|
||||
if (Is_stronghold(&u.uz))
|
||||
|
||||
@@ -1812,7 +1812,7 @@ struct obj *otmp;
|
||||
make_vomiting((long) rn1(context.victual.reqtime, 5), FALSE);
|
||||
break;
|
||||
}
|
||||
/* else FALLTHRU */
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
if (otmp->otyp == SLIME_MOLD && !otmp->cursed
|
||||
&& otmp->spe == context.current_fruit) {
|
||||
|
||||
@@ -708,6 +708,7 @@ doengrave()
|
||||
"A few ice cubes drop from the wand.");
|
||||
if (!oep || (oep->engr_type != BURN))
|
||||
break;
|
||||
/*FALLTHRU*/
|
||||
case WAN_CANCELLATION:
|
||||
case WAN_MAKE_INVISIBLE:
|
||||
if (oep && oep->engr_type != HEADSTONE) {
|
||||
|
||||
@@ -330,6 +330,7 @@ drinkfountain()
|
||||
dofindgem();
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 28: /* Water Nymph */
|
||||
dowaternymph();
|
||||
break;
|
||||
@@ -445,6 +446,7 @@ register struct obj *obj;
|
||||
dofindgem();
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 25: /* Water gushes forth */
|
||||
dogushforth(FALSE);
|
||||
break;
|
||||
@@ -616,6 +618,7 @@ drinksink()
|
||||
pline("From the murky drain, a hand reaches up... --oops--");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
You("take a sip of %s %s.",
|
||||
rn2(3) ? (rn2(2) ? "cold" : "warm") : "hot",
|
||||
|
||||
@@ -1867,6 +1867,7 @@ nextclass:
|
||||
switch (sym) {
|
||||
case 'a':
|
||||
allflag = 1;
|
||||
/*FALLTHRU*/
|
||||
case 'y':
|
||||
tmp = (*fn)(otmp);
|
||||
if (tmp < 0) {
|
||||
@@ -1883,6 +1884,7 @@ nextclass:
|
||||
cnt += tmp;
|
||||
if (--mx == 0)
|
||||
goto ret;
|
||||
/*FALLTHRU*/
|
||||
case 'n':
|
||||
if (nodot)
|
||||
dud++;
|
||||
|
||||
@@ -668,10 +668,13 @@ register struct monst *mtmp;
|
||||
/* MAJOR fall through ... */
|
||||
case 0:
|
||||
(void) mongets(mtmp, WAN_MAGIC_MISSILE);
|
||||
/*FALLTHRU*/
|
||||
case 1:
|
||||
(void) mongets(mtmp, POT_EXTRA_HEALING);
|
||||
/*FALLTHRU*/
|
||||
case 2:
|
||||
(void) mongets(mtmp, POT_HEALING);
|
||||
/*FALLTHRU*/
|
||||
case 3:
|
||||
(void) mongets(mtmp, WAN_STRIKING);
|
||||
}
|
||||
|
||||
+2
-2
@@ -86,7 +86,7 @@ int spellval;
|
||||
case 23:
|
||||
if (Antimagic || Hallucination)
|
||||
return MGC_PSI_BOLT;
|
||||
/* else FALL THROUGH */
|
||||
/*FALLTHRU*/
|
||||
case 22:
|
||||
case 21:
|
||||
case 20:
|
||||
@@ -141,7 +141,7 @@ int spellnum;
|
||||
case 14:
|
||||
if (rn2(3))
|
||||
return CLC_OPEN_WOUNDS;
|
||||
/* else FALL THROUGH */
|
||||
/*FALLTHRU*/
|
||||
case 13:
|
||||
return CLC_GEYSER;
|
||||
case 12:
|
||||
|
||||
@@ -575,6 +575,7 @@ struct attack *mattk;
|
||||
Sprintf(buf, "%s squeezes", magr_name);
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
Sprintf(buf, "%s hits", magr_name);
|
||||
}
|
||||
|
||||
+3
-2
@@ -1316,7 +1316,7 @@ register struct attack *mattk;
|
||||
return 3;
|
||||
break;
|
||||
}
|
||||
/* else FALLTHRU */
|
||||
/*FALLTHRU*/
|
||||
case AD_SITM: /* for now these are the same */
|
||||
case AD_SEDU:
|
||||
if (is_animal(mtmp->data)) {
|
||||
@@ -1553,7 +1553,8 @@ register struct attack *mattk;
|
||||
done(DIED);
|
||||
dmg = 0;
|
||||
break;
|
||||
} /* else FALLTHRU */
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
default: /* case 16: ... case 5: */
|
||||
You_feel("your life force draining away...");
|
||||
permdmg = 1; /* actual damage done below */
|
||||
|
||||
+1
-1
@@ -491,7 +491,7 @@ fixup_special()
|
||||
s_level *sp = find_level(r->rname.str);
|
||||
lev = sp->dlevel;
|
||||
}
|
||||
/* fall into... */
|
||||
/*FALLTHRU*/
|
||||
|
||||
case LR_UPSTAIR:
|
||||
case LR_DOWNSTAIR:
|
||||
|
||||
+2
-1
@@ -278,7 +278,7 @@ struct obj *box;
|
||||
n = 0;
|
||||
break;
|
||||
}
|
||||
/*else FALLTHRU*/
|
||||
/*FALLTHRU*/
|
||||
case BAG_OF_HOLDING:
|
||||
n = 1;
|
||||
break;
|
||||
@@ -884,6 +884,7 @@ boolean artif;
|
||||
case LARGE_BOX:
|
||||
otmp->olocked = !!(rn2(5));
|
||||
otmp->otrapped = !(rn2(10));
|
||||
/*FALLTHRU*/
|
||||
case ICE_BOX:
|
||||
case SACK:
|
||||
case OILSKIN_SACK:
|
||||
|
||||
+2
-2
@@ -1005,7 +1005,7 @@ try_again:
|
||||
goto try_again;
|
||||
if (!rn2(3))
|
||||
return WAN_TELEPORTATION;
|
||||
/* else FALLTHRU */
|
||||
/*FALLTHRU*/
|
||||
case 0:
|
||||
case 1:
|
||||
return SCR_TELEPORTATION;
|
||||
@@ -1013,7 +1013,7 @@ try_again:
|
||||
case 10:
|
||||
if (!rn2(3))
|
||||
return WAN_CREATE_MONSTER;
|
||||
/* else FALLTHRU */
|
||||
/*FALLTHRU*/
|
||||
case 2:
|
||||
return SCR_CREATE_MONSTER;
|
||||
case 3:
|
||||
|
||||
+1
-1
@@ -302,7 +302,7 @@ int force;
|
||||
case THRONE:
|
||||
if (cansee(x, y))
|
||||
pline_The("throne falls into a chasm.");
|
||||
/* Falls into next case */
|
||||
/*FALLTHRU*/
|
||||
case ROOM:
|
||||
case CORR: /* Try to make a pit */
|
||||
do_pit:
|
||||
|
||||
+2
-1
@@ -453,6 +453,7 @@ unsigned cxn_flags; /* bitmask of CXN_xxx values */
|
||||
case WEAPON_CLASS:
|
||||
if (is_poisonable(obj) && obj->opoisoned)
|
||||
Strcpy(buf, "poisoned ");
|
||||
/*FALLTHRU*/
|
||||
case VENOM_CLASS:
|
||||
case TOOL_CLASS:
|
||||
if (typ == LENSES)
|
||||
@@ -3710,7 +3711,7 @@ typfnd:
|
||||
otmp->spe = (rn2(10) ? -1 : 0);
|
||||
break;
|
||||
}
|
||||
/* fall through, if wizard */
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
otmp->spe = spe;
|
||||
}
|
||||
|
||||
+1
-1
@@ -481,7 +481,7 @@ char *buf, *monbuf;
|
||||
Strcpy(buf, "stone");
|
||||
break;
|
||||
}
|
||||
/*else FALLTHRU*/
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
Strcpy(buf, defsyms[glyph_to_cmap(glyph)].explanation);
|
||||
break;
|
||||
|
||||
+4
-2
@@ -957,6 +957,7 @@ aligntyp g_align;
|
||||
switch (min(action, 5)) {
|
||||
case 5:
|
||||
pat_on_head = 1;
|
||||
/*FALLTHRU*/
|
||||
case 4:
|
||||
do
|
||||
fix_worst_trouble(trouble);
|
||||
@@ -1056,7 +1057,7 @@ aligntyp g_align;
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* Otherwise, falls into next case */
|
||||
/*FALLTHRU*/
|
||||
case 2:
|
||||
if (!Blind)
|
||||
You("are surrounded by %s glow.", an(hcolor(NH_GOLDEN)));
|
||||
@@ -1148,7 +1149,8 @@ aligntyp g_align;
|
||||
if (u.ualign.record >= PIOUS && !u.uevent.uhand_of_elbereth) {
|
||||
gcrownu();
|
||||
break;
|
||||
} /* else FALLTHRU */
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 6: {
|
||||
struct obj *otmp;
|
||||
int sp_no, trycnt = u.ulevel + 1;
|
||||
|
||||
@@ -471,6 +471,7 @@ char *in_line, *out_line;
|
||||
/* pluralize */
|
||||
case 'P':
|
||||
cvt_buf[0] = highc(cvt_buf[0]);
|
||||
/*FALLTHRU*/
|
||||
case 'p':
|
||||
Strcpy(cvt_buf, makeplural(cvt_buf));
|
||||
break;
|
||||
@@ -478,6 +479,7 @@ char *in_line, *out_line;
|
||||
/* append possessive suffix */
|
||||
case 'S':
|
||||
cvt_buf[0] = highc(cvt_buf[0]);
|
||||
/*FALLTHRU*/
|
||||
case 's':
|
||||
Strcpy(cvt_buf, s_suffix(cvt_buf));
|
||||
break;
|
||||
|
||||
@@ -1551,6 +1551,7 @@ struct obj *sobj; /* scroll, or fake spellbook object for scroll-like spell */
|
||||
/* do_mapping() already reveals secret passages */
|
||||
}
|
||||
known = TRUE;
|
||||
/*FALLTHRU*/
|
||||
case SPE_MAGIC_MAPPING:
|
||||
if (level.flags.nommap) {
|
||||
Your("%s spins as %s blocks the spell!", body_part(HEAD),
|
||||
|
||||
@@ -3101,6 +3101,7 @@ xchar x, y;
|
||||
switch (sell_response ? sell_response : ynaq(qbuf)) {
|
||||
case 'q':
|
||||
sell_response = 'n';
|
||||
/*FALLTHRU*/
|
||||
case 'n':
|
||||
if (container)
|
||||
dropped_container(obj, shkp, FALSE);
|
||||
@@ -3110,6 +3111,7 @@ xchar x, y;
|
||||
break;
|
||||
case 'a':
|
||||
sell_response = 'y';
|
||||
/*FALLTHRU*/
|
||||
case 'y':
|
||||
if (container)
|
||||
dropped_container(obj, shkp, TRUE);
|
||||
|
||||
@@ -396,18 +396,21 @@ attrcurse()
|
||||
You_feel("warmer.");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 2:
|
||||
if (HTeleportation & INTRINSIC) {
|
||||
HTeleportation &= ~INTRINSIC;
|
||||
You_feel("less jumpy.");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 3:
|
||||
if (HPoison_resistance & INTRINSIC) {
|
||||
HPoison_resistance &= ~INTRINSIC;
|
||||
You_feel("a little sick!");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 4:
|
||||
if (HTelepat & INTRINSIC) {
|
||||
HTelepat &= ~INTRINSIC;
|
||||
@@ -416,18 +419,21 @@ attrcurse()
|
||||
Your("senses fail!");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 5:
|
||||
if (HCold_resistance & INTRINSIC) {
|
||||
HCold_resistance &= ~INTRINSIC;
|
||||
You_feel("cooler.");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 6:
|
||||
if (HInvis & INTRINSIC) {
|
||||
HInvis &= ~INTRINSIC;
|
||||
You_feel("paranoid.");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 7:
|
||||
if (HSee_invisible & INTRINSIC) {
|
||||
HSee_invisible &= ~INTRINSIC;
|
||||
@@ -435,18 +441,21 @@ attrcurse()
|
||||
: "thought you saw something");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 8:
|
||||
if (HFast & INTRINSIC) {
|
||||
HFast &= ~INTRINSIC;
|
||||
You_feel("slower.");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 9:
|
||||
if (HStealth & INTRINSIC) {
|
||||
HStealth &= ~INTRINSIC;
|
||||
You_feel("clumsy.");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 10:
|
||||
/* intrinsic protection is just disabled, not set back to 0 */
|
||||
if (HProtection & INTRINSIC) {
|
||||
@@ -454,12 +463,14 @@ attrcurse()
|
||||
You_feel("vulnerable.");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 11:
|
||||
if (HAggravate_monster & INTRINSIC) {
|
||||
HAggravate_monster &= ~INTRINSIC;
|
||||
You_feel("less attractive.");
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
+4
-3
@@ -113,8 +113,8 @@ dosounds()
|
||||
You_hear("someone searching.");
|
||||
break;
|
||||
}
|
||||
/* fall into... (yes, even for hallucination) */
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case 0:
|
||||
You_hear("the footsteps of a guard on patrol.");
|
||||
break;
|
||||
@@ -662,7 +662,8 @@ register struct monst *mtmp;
|
||||
else
|
||||
pline_msg = "mews.";
|
||||
break;
|
||||
} /* else FALLTHRU */
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case MS_GROWL:
|
||||
pline_msg = mtmp->mpeaceful ? "snarls." : "growls!";
|
||||
break;
|
||||
@@ -764,7 +765,7 @@ register struct monst *mtmp;
|
||||
}
|
||||
break;
|
||||
}
|
||||
/* else FALLTHRU */
|
||||
/*FALLTHRU*/
|
||||
case MS_HUMANOID:
|
||||
if (!mtmp->mpeaceful) {
|
||||
if (In_endgame(&u.uz) && is_mplayer(ptr))
|
||||
|
||||
@@ -485,6 +485,7 @@ int reason; /* Player was thrown off etc. */
|
||||
switch (reason) {
|
||||
case DISMOUNT_THROWN:
|
||||
verb = "are thrown";
|
||||
/*FALLTHRU*/
|
||||
case DISMOUNT_FELL:
|
||||
You("%s off of %s!", verb, mon_nam(mtmp));
|
||||
if (!have_spot)
|
||||
|
||||
+1
-1
@@ -2465,7 +2465,7 @@ register struct monst *mtmp;
|
||||
mtmp->mtrapped = 1;
|
||||
break;
|
||||
}
|
||||
/* fall though */
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
if (mptr->mlet == S_GIANT
|
||||
/* exclude baby dragons and relatively short worms */
|
||||
|
||||
@@ -2396,6 +2396,7 @@ register struct monst *mon;
|
||||
|| youmonst.data->mlet == S_ORC
|
||||
|| youmonst.data->mlet == S_GNOME) && !weapon_used)
|
||||
goto use_weapon;
|
||||
/*FALLTHRU*/
|
||||
|
||||
case AT_NONE:
|
||||
case AT_BOOM:
|
||||
|
||||
+1
-1
@@ -391,7 +391,7 @@ register struct monst *mtmp;
|
||||
mtmp->mhp += rnd(8);
|
||||
return 1;
|
||||
}
|
||||
/* fall through :-) */
|
||||
/*FALLTHRU*/
|
||||
|
||||
case STRAT_NONE: /* harass */
|
||||
if (!rn2(!mtmp->mflee ? 5 : 33))
|
||||
|
||||
@@ -2408,6 +2408,7 @@ boolean ordinary;
|
||||
case WAN_LIGHT: /* (broken wand) */
|
||||
/* assert( !ordinary ); */
|
||||
damage = d(obj->spe, 25);
|
||||
/*FALLTHRU*/
|
||||
case EXPENSIVE_CAMERA:
|
||||
if (!damage)
|
||||
damage = 5;
|
||||
@@ -4138,7 +4139,8 @@ boolean say; /* Announce out of sight hit/miss events if true */
|
||||
|
||||
switch (bounce) {
|
||||
case 0:
|
||||
dx = -dx; /* fall into... */
|
||||
dx = -dx;
|
||||
/*FALLTHRU*/
|
||||
case 1:
|
||||
dy = -dy;
|
||||
break;
|
||||
|
||||
@@ -2775,6 +2775,7 @@ do_objs()
|
||||
prefix = -1;
|
||||
break;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
Fprintf(ofp, "#define\t");
|
||||
}
|
||||
|
||||
@@ -1171,6 +1171,7 @@ int n;
|
||||
case ATR_ULINE:
|
||||
if (nh_US)
|
||||
return nh_US;
|
||||
/*FALLTHRU*/
|
||||
case ATR_BOLD:
|
||||
case ATR_BLINK:
|
||||
#if defined(TERMLIB) && defined(TEXTCOLOR)
|
||||
@@ -1192,6 +1193,7 @@ int n;
|
||||
case ATR_ULINE:
|
||||
if (nh_UE)
|
||||
return nh_UE;
|
||||
/*FALLTHRU*/
|
||||
case ATR_BOLD:
|
||||
case ATR_BLINK:
|
||||
return nh_HE;
|
||||
|
||||
+4
-2
@@ -1527,7 +1527,7 @@ winid window;
|
||||
case NHW_MAP:
|
||||
/* cheap -- clear the whole thing and tell nethack to redraw botl */
|
||||
context.botlx = 1;
|
||||
/* fall into ... */
|
||||
/*FALLTHRU*/
|
||||
case NHW_BASE:
|
||||
clear_screen();
|
||||
break;
|
||||
@@ -1917,7 +1917,8 @@ struct WinDesc *cw;
|
||||
/* special case: '0' is also the default ball class */
|
||||
if (!counting && index(gacc, morc))
|
||||
goto group_accel;
|
||||
/* fall through to count the zero */
|
||||
/* fall through to count the zero */
|
||||
/*FALLTHRU*/
|
||||
case '1':
|
||||
case '2':
|
||||
case '3':
|
||||
@@ -2197,6 +2198,7 @@ boolean blocking; /* with ttys, all windows are blocking */
|
||||
tty_display_nhwindow(WIN_MESSAGE, TRUE);
|
||||
return;
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
case NHW_BASE:
|
||||
(void) fflush(stdout);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user