avoid the_your[] duplication
get rid of a duplication of the_your[] strings (do.c, trap.c) by moving it to c_common_strings.
This commit is contained in:
@@ -239,7 +239,7 @@ struct c_common_strings c_common_strings = {
|
||||
"Nothing happens.", "That's enough tries!",
|
||||
"That is a silly thing to %s.", "shudder for a moment.",
|
||||
"something", "Something", "You can move again.", "Never mind.",
|
||||
"vision quickly clears."
|
||||
"vision quickly clears.", {"the", "your"}
|
||||
};
|
||||
|
||||
/* NOTE: the order of these words exactly corresponds to the
|
||||
|
||||
1
src/do.c
1
src/do.c
@@ -195,7 +195,6 @@ const char *verb;
|
||||
(!u.utrap || (u.utrap && u.utraptype != TT_PIT)) &&
|
||||
(t = t_at(x,y)) != 0 && t->tseen &&
|
||||
(t->ttyp==PIT || t->ttyp==SPIKED_PIT)) {
|
||||
static const char * const the_your[2] = { "the", "your" };
|
||||
/* you escaped a pit and are standing on the precipice */
|
||||
if (Blind && flags.soundok)
|
||||
You_hear("%s %s downwards.",
|
||||
|
||||
@@ -32,7 +32,6 @@ STATIC_OVL boolean FDECL(keep_saddle_with_steedcorpse,
|
||||
|
||||
STATIC_VAR const char * const a_your[2] = { "a", "your" };
|
||||
STATIC_VAR const char * const A_Your[2] = { "A", "Your" };
|
||||
STATIC_VAR const char * const the_your[2] = { "the", "your" };
|
||||
STATIC_VAR const char tower_of_flame[] = "tower of flame";
|
||||
STATIC_VAR const char * const A_gush_of_water_hits = "A gush of water hits";
|
||||
STATIC_VAR const char * const blindgas[6] =
|
||||
|
||||
Reference in New Issue
Block a user