another pile on the trunk

This commit is contained in:
keni
2012-01-04 18:14:41 +00:00
parent e3856eead3
commit f95549512a
6 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -424,7 +424,7 @@ struct qtmsg *qt_msg;
for (size = 0; size < qt_msg->size; size += (long)strlen(in_line)) { for (size = 0; size < qt_msg->size; size += (long)strlen(in_line)) {
(void) dlb_fgets(in_line, QTEXT_IN_SIZ, msg_file); (void) dlb_fgets(in_line, QTEXT_IN_SIZ, msg_file);
convert_line(); convert_line();
pline("%s", out_line); pline1(out_line);
} }
} }
@@ -547,7 +547,7 @@ deliver_splev_message()
it reads from in_line[] and writes to out_line[] */ it reads from in_line[] and writes to out_line[] */
(void)xcrypt(in_line, in_line); (void)xcrypt(in_line, in_line);
convert_line(); convert_line();
pline("%s", out_line); pline1(out_line);
if ((nl = index(str, '\n')) == 0) break; /* done if no newline */ if ((nl = index(str, '\n')) == 0) break; /* done if no newline */
} }
+8 -8
View File
@@ -202,7 +202,7 @@ stripspe(obj)
register struct obj *obj; register struct obj *obj;
{ {
if (obj->blessed || obj->spe <= 0) { if (obj->blessed || obj->spe <= 0) {
pline(nothing_happens); pline1(nothing_happens);
} else { } else {
/* order matters: message, shop handling, actual transformation */ /* order matters: message, shop handling, actual transformation */
pline("%s briefly.", Yobjnam2(obj, "vibrate")); pline("%s briefly.", Yobjnam2(obj, "vibrate"));
@@ -372,7 +372,7 @@ int curse_bless;
if (obj->spe < 3) if (obj->spe < 3)
Your("marker seems permanently dried out."); Your("marker seems permanently dried out.");
else else
pline(nothing_happens); pline1(nothing_happens);
} else if (is_blessed) { } else if (is_blessed) {
n = rn1(16,15); /* 15..30 */ n = rn1(16,15); /* 15..30 */
if (obj->spe + n <= 50) if (obj->spe + n <= 50)
@@ -430,7 +430,7 @@ int curse_bless;
if (obj->spe < 5) { if (obj->spe < 5) {
obj->spe++; obj->spe++;
p_glow1(obj); p_glow1(obj);
} else pline(nothing_happens); } else pline1(nothing_happens);
} }
break; break;
case HORN_OF_PLENTY: case HORN_OF_PLENTY:
@@ -1462,7 +1462,7 @@ struct obj *sobj; /* scroll, or fake spellbook object for scroll-like spell */
cc.x = u.ux; cc.x = u.ux;
cc.y = u.uy; cc.y = u.uy;
if (getpos(&cc, TRUE, "the desired position") < 0) { if (getpos(&cc, TRUE, "the desired position") < 0) {
pline(Never_mind); pline1(Never_mind);
break; break;
} }
if (!cansee(cc.x, cc.y) || distu(cc.x, cc.y) >= 32) { if (!cansee(cc.x, cc.y) || distu(cc.x, cc.y) >= 32) {
@@ -1672,7 +1672,7 @@ do_class_genocide()
for(j=0; ; j++) { for(j=0; ; j++) {
if (j >= 5) { if (j >= 5) {
pline(thats_enough_tries); pline1(thats_enough_tries);
return; return;
} }
do { do {
@@ -1826,7 +1826,7 @@ int how;
} else { } else {
for(i = 0; ; i++) { for(i = 0; ; i++) {
if(i >= 5) { if(i >= 5) {
pline(thats_enough_tries); pline1(thats_enough_tries);
return; return;
} }
getlin("What monster do you want to genocide? [type the name]", getlin("What monster do you want to genocide? [type the name]",
@@ -1948,7 +1948,7 @@ int how;
if (cnt) if (cnt)
pline("Sent in some %s.", makeplural(buf)); pline("Sent in some %s.", makeplural(buf));
else else
pline(nothing_happens); pline1(nothing_happens);
} }
} }
@@ -2095,7 +2095,7 @@ create_particular()
} while (--tryct > 0); } while (--tryct > 0);
if (!tryct) { if (!tryct) {
pline(thats_enough_tries); pline1(thats_enough_tries);
} else { } else {
if (!randmonst) { if (!randmonst) {
firstchoice = which; firstchoice = which;
+2 -2
View File
@@ -452,7 +452,7 @@ xchar
!regions[i]->attach_2_u && !inside_region(regions[i], x, y)) { !regions[i]->attach_2_u && !inside_region(regions[i], x, y)) {
clear_hero_inside(regions[i]); clear_hero_inside(regions[i]);
if (regions[i]->leave_msg != (const char *)0) if (regions[i]->leave_msg != (const char *)0)
pline(regions[i]->leave_msg); pline1(regions[i]->leave_msg);
if ((f_indx = regions[i]->leave_f) != NO_CALLBACK) if ((f_indx = regions[i]->leave_f) != NO_CALLBACK)
(void) (*callbacks[f_indx])(regions[i], (genericptr_t) 0); (void) (*callbacks[f_indx])(regions[i], (genericptr_t) 0);
} }
@@ -463,7 +463,7 @@ xchar
!regions[i]->attach_2_u && inside_region(regions[i], x, y)) { !regions[i]->attach_2_u && inside_region(regions[i], x, y)) {
set_hero_inside(regions[i]); set_hero_inside(regions[i]);
if (regions[i]->enter_msg != (const char *)0) if (regions[i]->enter_msg != (const char *)0)
pline(regions[i]->enter_msg); pline1(regions[i]->enter_msg);
if ((f_indx = regions[i]->enter_f) != NO_CALLBACK) if ((f_indx = regions[i]->enter_f) != NO_CALLBACK)
(void) (*callbacks[f_indx])(regions[i], (genericptr_t) 0); (void) (*callbacks[f_indx])(regions[i], (genericptr_t) 0);
} }
+1 -1
View File
@@ -993,7 +993,7 @@ boolean ghostly;
else else
Sprintf(trickbuf, "This is level %d, not %d!", dlvl, lev); Sprintf(trickbuf, "This is level %d, not %d!", dlvl, lev);
#ifdef WIZARD #ifdef WIZARD
if (wizard) pline(trickbuf); if (wizard) pline1(trickbuf);
#endif #endif
trickery(trickbuf); trickery(trickbuf);
} }
+1 -1
View File
@@ -1325,7 +1325,7 @@ proceed:
else Strcat(sbuf, else Strcat(sbuf,
"for gold picked up and the use of merchandise."); "for gold picked up and the use of merchandise.");
} else Strcat(sbuf, "for the use of merchandise."); } else Strcat(sbuf, "for the use of merchandise.");
pline(sbuf); pline1(sbuf);
#ifndef GOLDOBJ #ifndef GOLDOBJ
if (u.ugold + eshkp->credit < dtmp) { if (u.ugold + eshkp->credit < dtmp) {
#else #else
+11 -11
View File
@@ -48,7 +48,7 @@ dosounds()
"the splashing of a naiad.", "the splashing of a naiad.",
"a soda fountain!", "a soda fountain!",
}; };
You_hear(fountain_msg[rn2(3)+hallu]); You_hear1(fountain_msg[rn2(3)+hallu]);
} }
#ifdef SINK #ifdef SINK
if (level.flags.nsinks && !rn2(300)) { if (level.flags.nsinks && !rn2(300)) {
@@ -57,7 +57,7 @@ dosounds()
"a gurgling noise.", "a gurgling noise.",
"dishes being washed!", "dishes being washed!",
}; };
You_hear(sink_msg[rn2(2)+hallu]); You_hear1(sink_msg[rn2(2)+hallu]);
} }
#endif #endif
if (level.flags.has_court && !rn2(200)) { if (level.flags.has_court && !rn2(200)) {
@@ -76,7 +76,7 @@ dosounds()
/* finding one is enough, at least for now */ /* finding one is enough, at least for now */
int which = rn2(3)+hallu; int which = rn2(3)+hallu;
if (which != 2) You_hear(throne_msg[which]); if (which != 2) You_hear1(throne_msg[which]);
else pline(throne_msg[2], uhis()); else pline(throne_msg[2], uhis());
return; return;
} }
@@ -88,7 +88,7 @@ dosounds()
"smell marsh gas!", /* so it's a smell...*/ "smell marsh gas!", /* so it's a smell...*/
"hear Donald Duck!", "hear Donald Duck!",
}; };
You(swamp_msg[rn2(2)+hallu]); You1(swamp_msg[rn2(2)+hallu]);
return; return;
} }
if (level.flags.has_vault && !rn2(200)) { if (level.flags.has_vault && !rn2(200)) {
@@ -198,7 +198,7 @@ dosounds()
mon_in_room(mtmp, BARRACKS) && mon_in_room(mtmp, BARRACKS) &&
/* sleeping implies not-yet-disturbed (usually) */ /* sleeping implies not-yet-disturbed (usually) */
(mtmp->msleeping || ++count > 5)) { (mtmp->msleeping || ++count > 5)) {
You_hear(barracks_msg[rn2(3)+hallu]); You_hear1(barracks_msg[rn2(3)+hallu]);
return; return;
} }
} }
@@ -213,7 +213,7 @@ dosounds()
if (DEADMONSTER(mtmp)) continue; if (DEADMONSTER(mtmp)) continue;
if ((mtmp->msleeping || is_animal(mtmp->data)) && if ((mtmp->msleeping || is_animal(mtmp->data)) &&
mon_in_room(mtmp, ZOO)) { mon_in_room(mtmp, ZOO)) {
You_hear(zoo_msg[rn2(2)+hallu]); You_hear1(zoo_msg[rn2(2)+hallu]);
return; return;
} }
} }
@@ -231,7 +231,7 @@ dosounds()
"the chime of a cash register.", "the chime of a cash register.",
"Neiman and Marcus arguing!", "Neiman and Marcus arguing!",
}; };
You_hear(shop_msg[rn2(2)+hallu]); You_hear1(shop_msg[rn2(2)+hallu]);
} }
return; return;
} }
@@ -277,7 +277,7 @@ dosounds()
if (index(msg, '%')) if (index(msg, '%'))
You_hear(msg, halu_gname(EPRI(mtmp)->shralign)); You_hear(msg, halu_gname(EPRI(mtmp)->shralign));
else else
You_hear(msg); You_hear1(msg);
return; return;
} }
} }
@@ -297,7 +297,7 @@ dosounds()
"someone say \"No more woodchucks!\"", "someone say \"No more woodchucks!\"",
"a loud ZOT!" /* both rec.humor.oracle */ "a loud ZOT!" /* both rec.humor.oracle */
}; };
You_hear(ora_msg[rn2(3)+hallu*2]); You_hear1(ora_msg[rn2(3)+hallu*2]);
} }
return; return;
} }
@@ -913,8 +913,8 @@ register struct monst *mtmp;
} }
if (pline_msg) pline("%s %s", Monnam(mtmp), pline_msg); if (pline_msg) pline("%s %s", Monnam(mtmp), pline_msg);
else if (mtmp->mcan && verbl_msg_mcan) verbalize(verbl_msg_mcan); else if (mtmp->mcan && verbl_msg_mcan) verbalize1(verbl_msg_mcan);
else if (verbl_msg) verbalize(verbl_msg); else if (verbl_msg) verbalize1(verbl_msg);
return(1); return(1);
} }