insults
random_insult[] and random_malediction[] are only used in wizard.c so make them file-scope static instead of global.
This commit is contained in:
@@ -504,8 +504,8 @@ clonewiz(void)
|
|||||||
|
|
||||||
/* also used by newcham() */
|
/* also used by newcham() */
|
||||||
int
|
int
|
||||||
pick_nasty(int difcap) /* if non-zero, try to make difficulty be lower
|
pick_nasty(
|
||||||
than this */
|
int difcap) /* if non-zero, try to make difficulty be lower than this */
|
||||||
{
|
{
|
||||||
int alt, res = nasties[rn2(SIZE(nasties))];
|
int alt, res = nasties[rn2(SIZE(nasties))];
|
||||||
|
|
||||||
@@ -783,7 +783,7 @@ wizdead(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *const random_insult[] = {
|
static const char *const random_insult[] = {
|
||||||
"antic", "blackguard", "caitiff", "chucklehead",
|
"antic", "blackguard", "caitiff", "chucklehead",
|
||||||
"coistrel", "craven", "cretin", "cur",
|
"coistrel", "craven", "cretin", "cur",
|
||||||
"dastard", "demon fodder", "dimwit", "dolt",
|
"dastard", "demon fodder", "dimwit", "dolt",
|
||||||
@@ -794,7 +794,7 @@ const char *const random_insult[] = {
|
|||||||
"wittol", "worm", "wretch",
|
"wittol", "worm", "wretch",
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *const random_malediction[] = {
|
static const char *const random_malediction[] = {
|
||||||
"Hell shall soon claim thy remains,", "I chortle at thee, thou pathetic",
|
"Hell shall soon claim thy remains,", "I chortle at thee, thou pathetic",
|
||||||
"Prepare to die, thou", "Resistance is useless,",
|
"Prepare to die, thou", "Resistance is useless,",
|
||||||
"Surrender or die, thou", "There shall be no mercy, thou",
|
"Surrender or die, thou", "There shall be no mercy, thou",
|
||||||
|
|||||||
Reference in New Issue
Block a user