diff options
| author | mycroft <mycroft@NetBSD.org> | 1993-04-20 22:00:26 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1993-04-20 22:00:26 +0000 |
| commit | 10e9633963797cac6bb94bb2950e7a1fcc25c1d3 (patch) | |
| tree | 8c6c0902173e113726e24c7515abccdbc208456b /larn/object.c | |
| parent | 398e51a3c905d11cf31c42e7bd5cce452bcd5534 (diff) | |
| download | bsdgames-darwin-10e9633963797cac6bb94bb2950e7a1fcc25c1d3.tar.gz bsdgames-darwin-10e9633963797cac6bb94bb2950e7a1fcc25c1d3.zip | |
Don't modify string constants.
Diffstat (limited to 'larn/object.c')
| -rw-r--r-- | larn/object.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/larn/object.c b/larn/object.c index 9bf7c3c5..cbe7c60b 100644 --- a/larn/object.c +++ b/larn/object.c @@ -391,7 +391,7 @@ quaffpotion(pot) { register int i,j,k; if (pot<0 || pot>=MAXPOTION) return; /* check for within bounds */ - potionname[pot][0] = ' '; + potionname[pot] = potionhide[pot]; switch(pot) { case 9: lprcat("\nYou feel greedy . . ."); nap(2000); @@ -550,7 +550,7 @@ read_scroll(typ) { register int i,j; if (typ<0 || typ>=MAXSCROLL) return; /* be sure we are within bounds */ - scrollname[typ][0] = ' '; + scrollname[typ] = scrollhide[typ]; switch(typ) { case 0: lprcat("\nYour armor glows for a moment"); enchantarmor(); return; @@ -615,8 +615,8 @@ read_scroll(typ) case 19: for (i=0; i<26; i++) /* identify */ { - if (iven[i]==OPOTION) potionname[ivenarg[i]][0] = ' '; - if (iven[i]==OSCROLL) scrollname[ivenarg[i]][0] = ' '; + if (iven[i]==OPOTION) potionname[ivenarg[i]] = potionhide[ivenarg[i]]; + if (iven[i]==OSCROLL) scrollname[ivenarg[i]] = scrollhide[ivenarg[i]]; } break; |
