last bunch - pline warnings while testing postcommit.pl
This commit is contained in:
+3
-3
@@ -417,8 +417,8 @@ int roomno;
|
|||||||
msg1 = buf;
|
msg1 = buf;
|
||||||
}
|
}
|
||||||
if (msg1 && can_speak && !Deaf) {
|
if (msg1 && can_speak && !Deaf) {
|
||||||
verbalize(msg1);
|
verbalize1(msg1);
|
||||||
if (msg2) verbalize(msg2);
|
if (msg2) verbalize1(msg2);
|
||||||
epri_p->enter_time = moves + (long)d(10, 100); /* ~505 */
|
epri_p->enter_time = moves + (long)d(10, 100); /* ~505 */
|
||||||
}
|
}
|
||||||
if (!sanctum) {
|
if (!sanctum) {
|
||||||
@@ -525,7 +525,7 @@ register struct monst *priest;
|
|||||||
priest->mcanmove = 1;
|
priest->mcanmove = 1;
|
||||||
}
|
}
|
||||||
priest->mpeaceful = 0;
|
priest->mpeaceful = 0;
|
||||||
verbalize(cranky_msg[rn2(3)]);
|
verbalize1(cranky_msg[rn2(3)]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ use_saddle(otmp)
|
|||||||
|
|
||||||
/* Select an animal */
|
/* Select an animal */
|
||||||
if (u.uswallow || Underwater || !getdir((char *)0)) {
|
if (u.uswallow || Underwater || !getdir((char *)0)) {
|
||||||
pline(Never_mind);
|
pline1(Never_mind);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!u.dx && !u.dy) {
|
if (!u.dx && !u.dy) {
|
||||||
|
|||||||
+6
-6
@@ -589,7 +589,7 @@ dotele()
|
|||||||
else tele();
|
else tele();
|
||||||
(void) next_to_u();
|
(void) next_to_u();
|
||||||
} else {
|
} else {
|
||||||
You(shudder_for_moment);
|
You1(shudder_for_moment);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
if (!trap) morehungry(100);
|
if (!trap) morehungry(100);
|
||||||
@@ -698,7 +698,7 @@ level_tele()
|
|||||||
* we let negative values requests fall into the "heaven" loop.
|
* we let negative values requests fall into the "heaven" loop.
|
||||||
*/
|
*/
|
||||||
if (Is_knox(&u.uz) && newlev > 0 && !force_dest) {
|
if (Is_knox(&u.uz) && newlev > 0 && !force_dest) {
|
||||||
You(shudder_for_moment);
|
You1(shudder_for_moment);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* if in Quest, the player sees "Home 1", etc., on the status
|
/* if in Quest, the player sees "Home 1", etc., on the status
|
||||||
@@ -715,7 +715,7 @@ level_tele()
|
|||||||
random_levtport:
|
random_levtport:
|
||||||
newlev = random_teleport_level();
|
newlev = random_teleport_level();
|
||||||
if (newlev == depth(&u.uz)) {
|
if (newlev == depth(&u.uz)) {
|
||||||
You(shudder_for_moment);
|
You1(shudder_for_moment);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -724,7 +724,7 @@ level_tele()
|
|||||||
buried_ball_to_punishment();
|
buried_ball_to_punishment();
|
||||||
|
|
||||||
if (!next_to_u() && !force_dest) {
|
if (!next_to_u() && !force_dest) {
|
||||||
You(shudder_for_moment);
|
You1(shudder_for_moment);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef WIZARD
|
#ifdef WIZARD
|
||||||
@@ -852,7 +852,7 @@ register struct trap *ttmp;
|
|||||||
buried_ball_to_punishment();
|
buried_ball_to_punishment();
|
||||||
|
|
||||||
if (!next_to_u()) {
|
if (!next_to_u()) {
|
||||||
You(shudder_for_moment);
|
You1(shudder_for_moment);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -886,7 +886,7 @@ struct trap *trap;
|
|||||||
shieldeff(u.ux, u.uy);
|
shieldeff(u.ux, u.uy);
|
||||||
You_feel("a wrenching sensation.");
|
You_feel("a wrenching sensation.");
|
||||||
} else if (!next_to_u()) {
|
} else if (!next_to_u()) {
|
||||||
You(shudder_for_moment);
|
You1(shudder_for_moment);
|
||||||
} else if (trap->once) {
|
} else if (trap->once) {
|
||||||
deltrap(trap);
|
deltrap(trap);
|
||||||
newsym(u.ux,u.uy); /* get rid of trap symbol */
|
newsym(u.ux,u.uy); /* get rid of trap symbol */
|
||||||
|
|||||||
+4
-4
@@ -29,7 +29,7 @@ stoned_dialogue()
|
|||||||
register long i = (Stoned & TIMEOUT);
|
register long i = (Stoned & TIMEOUT);
|
||||||
|
|
||||||
if (i > 0L && i <= SIZE(stoned_texts))
|
if (i > 0L && i <= SIZE(stoned_texts))
|
||||||
pline(stoned_texts[SIZE(stoned_texts) - i]);
|
pline1(stoned_texts[SIZE(stoned_texts) - i]);
|
||||||
switch ((int) i) {
|
switch ((int) i) {
|
||||||
case 5: /* slowing down */
|
case 5: /* slowing down */
|
||||||
HFast = 0L;
|
HFast = 0L;
|
||||||
@@ -92,7 +92,7 @@ vomiting_dialogue()
|
|||||||
break;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
if (txt) You("%s", txt);
|
if (txt) You1(txt);
|
||||||
exercise(A_CON, FALSE);
|
exercise(A_CON, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@ choke_dialogue()
|
|||||||
if (index(str, '%'))
|
if (index(str, '%'))
|
||||||
pline(str, hcolor(NH_BLUE));
|
pline(str, hcolor(NH_BLUE));
|
||||||
else
|
else
|
||||||
pline(str);
|
pline1(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exercise(A_STR, FALSE);
|
exercise(A_STR, FALSE);
|
||||||
@@ -156,7 +156,7 @@ slime_dialogue()
|
|||||||
} else
|
} else
|
||||||
pline(str, an(Hallucination ? rndmonnam() : "green slime"));
|
pline(str, an(Hallucination ? rndmonnam() : "green slime"));
|
||||||
} else
|
} else
|
||||||
pline(str);
|
pline1(str);
|
||||||
}
|
}
|
||||||
if (i == 3L) { /* limbs becoming oozy */
|
if (i == 3L) { /* limbs becoming oozy */
|
||||||
HFast = 0L; /* lose intrinsic speed */
|
HFast = 0L; /* lose intrinsic speed */
|
||||||
|
|||||||
+2
-2
@@ -400,7 +400,7 @@ boolean td; /* td == TRUE : trap door or hole */
|
|||||||
dont_fall = "are jerked back by your pet!";
|
dont_fall = "are jerked back by your pet!";
|
||||||
}
|
}
|
||||||
if (dont_fall) {
|
if (dont_fall) {
|
||||||
You(dont_fall);
|
You1(dont_fall);
|
||||||
/* hero didn't fall through, but any objects here might */
|
/* hero didn't fall through, but any objects here might */
|
||||||
impact_drop((struct obj *)0, u.ux, u.uy, 0);
|
impact_drop((struct obj *)0, u.ux, u.uy, 0);
|
||||||
if (!td) {
|
if (!td) {
|
||||||
@@ -2919,7 +2919,7 @@ domagictrap()
|
|||||||
if (!resists_blnd(&youmonst)) {
|
if (!resists_blnd(&youmonst)) {
|
||||||
You("are momentarily blinded by a flash of light!");
|
You("are momentarily blinded by a flash of light!");
|
||||||
make_blinded((long)rn1(5,10),FALSE);
|
make_blinded((long)rn1(5,10),FALSE);
|
||||||
if (!Blind) Your(vision_clears);
|
if (!Blind) Your1(vision_clears);
|
||||||
} else if (!Blind) {
|
} else if (!Blind) {
|
||||||
You_see("a flash of light!");
|
You_see("a flash of light!");
|
||||||
} else if (!Deaf) {
|
} else if (!Deaf) {
|
||||||
|
|||||||
+1
-1
@@ -1907,7 +1907,7 @@ register struct attack *mattk;
|
|||||||
if (Slow_digestion) tmp *= 2;
|
if (Slow_digestion) tmp *= 2;
|
||||||
nomul(-tmp);
|
nomul(-tmp);
|
||||||
nomovemsg = msgbuf;
|
nomovemsg = msgbuf;
|
||||||
} else pline("%s", msgbuf);
|
} else pline1(msgbuf);
|
||||||
if (pd == &mons[PM_GREEN_SLIME]) {
|
if (pd == &mons[PM_GREEN_SLIME]) {
|
||||||
Sprintf(msgbuf, "%s isn't sitting well with you.",
|
Sprintf(msgbuf, "%s isn't sitting well with you.",
|
||||||
The(pd->mname));
|
The(pd->mname));
|
||||||
|
|||||||
+1
-1
@@ -46,7 +46,7 @@ doversion()
|
|||||||
{
|
{
|
||||||
char buf[BUFSZ];
|
char buf[BUFSZ];
|
||||||
|
|
||||||
pline("%s", getversionstring(buf));
|
pline1(getversionstring(buf));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -150,7 +150,7 @@ char let;
|
|||||||
int how;
|
int how;
|
||||||
const char *mesg;
|
const char *mesg;
|
||||||
{
|
{
|
||||||
pline("%s", mesg);
|
pline1(mesg);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,7 +209,7 @@ boolean restoring;
|
|||||||
intact at the end of each call.
|
intact at the end of each call.
|
||||||
*/
|
*/
|
||||||
#if 0 /* maybe... */
|
#if 0 /* maybe... */
|
||||||
if (!restoring) pline("%s", msg);
|
if (!restoring) pline1(msg);
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2027,7 +2027,7 @@ dozap()
|
|||||||
check_unpaid(obj);
|
check_unpaid(obj);
|
||||||
|
|
||||||
/* zappable addition done by GAN 11/03/86 */
|
/* zappable addition done by GAN 11/03/86 */
|
||||||
if(!zappable(obj)) pline("%s", nothing_happens);
|
if(!zappable(obj)) pline1(nothing_happens);
|
||||||
else if(obj->cursed && !rn2(WAND_BACKFIRE_CHANCE)) {
|
else if(obj->cursed && !rn2(WAND_BACKFIRE_CHANCE)) {
|
||||||
backfire(obj); /* the wand blows up in your face! */
|
backfire(obj); /* the wand blows up in your face! */
|
||||||
exercise(A_STR, FALSE);
|
exercise(A_STR, FALSE);
|
||||||
@@ -2419,7 +2419,7 @@ long duration;
|
|||||||
if (!resists_blnd(&youmonst)) {
|
if (!resists_blnd(&youmonst)) {
|
||||||
You(are_blinded_by_the_flash);
|
You(are_blinded_by_the_flash);
|
||||||
make_blinded(duration, FALSE);
|
make_blinded(duration, FALSE);
|
||||||
if (!Blind) Your(vision_clears);
|
if (!Blind) Your1(vision_clears);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -2672,11 +2672,7 @@ struct obj *obj; /* wand or spell */
|
|||||||
case SPE_STONE_TO_FLESH:
|
case SPE_STONE_TO_FLESH:
|
||||||
if (Is_airlevel(&u.uz) || Is_waterlevel(&u.uz) ||
|
if (Is_airlevel(&u.uz) || Is_waterlevel(&u.uz) ||
|
||||||
Underwater || (Is_qstart(&u.uz) && u.dz < 0)) {
|
Underwater || (Is_qstart(&u.uz) && u.dz < 0)) {
|
||||||
#if 1
|
pline1(nothing_happens);
|
||||||
pline("%s", nothing_happens);
|
|
||||||
#else
|
|
||||||
pline(nothing_happens);
|
|
||||||
#endif
|
|
||||||
} else if (u.dz < 0) { /* we should do more... */
|
} else if (u.dz < 0) { /* we should do more... */
|
||||||
pline("Blood drips on your %s.", body_part(FACE));
|
pline("Blood drips on your %s.", body_part(FACE));
|
||||||
} else if (u.dz > 0 && !OBJ_AT(u.ux, u.uy)) {
|
} else if (u.dz > 0 && !OBJ_AT(u.ux, u.uy)) {
|
||||||
@@ -2687,7 +2683,7 @@ struct obj *obj; /* wand or spell */
|
|||||||
e = engr_at(u.ux, u.uy);
|
e = engr_at(u.ux, u.uy);
|
||||||
if (!(e && e->engr_type == ENGRAVE)) {
|
if (!(e && e->engr_type == ENGRAVE)) {
|
||||||
if (is_pool(u.ux, u.uy) || is_ice(u.ux, u.uy))
|
if (is_pool(u.ux, u.uy) || is_ice(u.ux, u.uy))
|
||||||
pline("%s", nothing_happens);
|
pline1(nothing_happens);
|
||||||
else
|
else
|
||||||
pline("Blood %ss %s your %s.",
|
pline("Blood %ss %s your %s.",
|
||||||
is_lava(u.ux, u.uy) ? "boil" : "pool",
|
is_lava(u.ux, u.uy) ? "boil" : "pool",
|
||||||
@@ -4252,12 +4248,12 @@ short exploding_wand_typ;
|
|||||||
lev->doormask = new_doormask;
|
lev->doormask = new_doormask;
|
||||||
unblock_point(x, y); /* vision */
|
unblock_point(x, y); /* vision */
|
||||||
if (see_it) {
|
if (see_it) {
|
||||||
pline("%s", see_txt);
|
pline1(see_txt);
|
||||||
newsym(x, y);
|
newsym(x, y);
|
||||||
} else if (sense_txt) {
|
} else if (sense_txt) {
|
||||||
You("%s", sense_txt);
|
You1(sense_txt);
|
||||||
} else if (hear_txt) {
|
} else if (hear_txt) {
|
||||||
if (!Deaf) You_hear("%s", hear_txt);
|
if (!Deaf) You_hear1(hear_txt);
|
||||||
}
|
}
|
||||||
if (picking_at(x, y)) {
|
if (picking_at(x, y)) {
|
||||||
stop_occupation();
|
stop_occupation();
|
||||||
@@ -4731,7 +4727,7 @@ retry:
|
|||||||
if (!otmp) {
|
if (!otmp) {
|
||||||
pline("Nothing fitting that description exists in the game.");
|
pline("Nothing fitting that description exists in the game.");
|
||||||
if (++tries < MAXWISHTRY) goto retry;
|
if (++tries < MAXWISHTRY) goto retry;
|
||||||
pline("%s", thats_enough_tries);
|
pline1(thats_enough_tries);
|
||||||
otmp = readobjnam((char *)0, (struct obj *)0);
|
otmp = readobjnam((char *)0, (struct obj *)0);
|
||||||
if (!otmp) return; /* for safety; should never happen */
|
if (!otmp) return; /* for safety; should never happen */
|
||||||
} else if (otmp == ¬hing) {
|
} else if (otmp == ¬hing) {
|
||||||
|
|||||||
Reference in New Issue
Block a user