From 3ae69cab35a2b90f2dbcaea2b0a1dcb5d1461c30 Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 21 Oct 1994 21:26:08 +0000 Subject: Fix various problems with the potion/scroll name hiding mechanism. --- larn/object.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'larn/object.c') diff --git a/larn/object.c b/larn/object.c index 7a9cd5af..b3d4bc9d 100644 --- a/larn/object.c +++ b/larn/object.c @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "$Id: object.c,v 1.3 1993/08/02 17:20:16 mycroft Exp $"; +static char rcsid[] = "$Id: object.c,v 1.4 1994/10/21 21:26:12 mycroft Exp $"; #endif /* not lint */ /* object.c Larn is copyrighted 1986 by Noah Morgan. */ @@ -26,11 +26,12 @@ switch(i) case OPOTION: lprcat("\n\nYou have found a magic potion"); i = iarg[playerx][playery]; - if (potionname[i][0]) lprintf(" of %s",&potionname[i][1]); opotion(i); break; + if (potionname[i][0]!=0) lprintf(" of%s", potionname[i]); + opotion(i); break; case OSCROLL: lprcat("\n\nYou have found a magic scroll"); i = iarg[playerx][playery]; - if (scrollname[i][0]) lprintf(" of %s",&scrollname[i][1]); + if (scrollname[i][0]!=0) lprintf(" of%s", scrollname[i]); oscroll(i); break; case OALTAR: if (nearbymonst()) return; -- cgit v1.2.3