From: nethack.allison Date: Mon, 16 Apr 2012 00:37:49 +0000 (+0000) Subject: stoning message X-Git-Tag: MOVE2GIT~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d44b04e8cd3844b8590a7adebe702f6ec68aaf9;p=nethack stoning message From a bug report, 2012: > This one's easy: the "Your limbs {are stiffening|have turned to stone}" still > appears as such even when you're polymorphed into a form that has no limbs > (worms, etc.). > > Perhaps it should be "Your extremities[...]" or similar? --- diff --git a/src/timeout.c b/src/timeout.c index 5f0e3b047..fed93066f 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -26,10 +26,14 @@ static NEARDATA const char * const stoned_texts[] = { STATIC_OVL void stoned_dialogue() { + char buf[BUFSZ]; register long i = (Stoned & TIMEOUT); - if (i > 0L && i <= SIZE(stoned_texts)) - pline1(stoned_texts[SIZE(stoned_texts) - i]); + if (i > 0L && i <= SIZE(stoned_texts)) { + Strcpy(buf,stoned_texts[SIZE(stoned_texts) - i]); + pline1(nolimbs(youmonst.data) ? + strsubst(buf, "limbs", "extremities") : buf); + } switch ((int) i) { case 5: /* slowing down */ HFast = 0L;