string constants
<Someone> wrote: > Linux, Redhat 7.1 nethack 3.4.0 > >Please see attached patch file. > >I'm attempting to move more stuff into the "read-only" area, in >preparation for a port to another OS.
This commit is contained in:
@@ -313,7 +313,7 @@ gotobj:
|
||||
ostuck = (otmp->cursed && otmp->owornmask);
|
||||
|
||||
if (ostuck || !can_carry(mtmp, otmp)) {
|
||||
static const char *how[] = { "steal","snatch","grab","take" };
|
||||
static const char * const how[] = { "steal","snatch","grab","take" };
|
||||
cant_take:
|
||||
pline("%s tries to %s your %s but gives up.",
|
||||
Monnam(mtmp), how[rn2(SIZE(how))],
|
||||
|
||||
Reference in New Issue
Block a user