Skip to content

Commit

Permalink
Change to playergender CVAR
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 13, 2023
1 parent db4e3f4 commit ba033e0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/c_autocomplete.c
Original file line number Diff line number Diff line change
Expand Up @@ -5613,8 +5613,8 @@ autocomplete_t autocompletelist[] =
{ "if playergender female then ", DOOM1AND2 },
{ "if playergender male ", DOOM1AND2 },
{ "if playergender male then ", DOOM1AND2 },
{ "if playergender other ", DOOM1AND2 },
{ "if playergender other then ", DOOM1AND2 },
{ "if playergender unknown ", DOOM1AND2 },
{ "if playergender unknown then ", DOOM1AND2 },
{ "if playername ", DOOM1AND2 },
{ "if playername \"you\" ", DOOM1AND2 },
{ "if playername \"you\" then ", DOOM1AND2 },
Expand Down Expand Up @@ -6846,7 +6846,7 @@ autocomplete_t autocompletelist[] =
{ "playergender ", DOOM1AND2 },
{ "playergender female", DOOM1AND2 },
{ "playergender male", DOOM1AND2 },
{ "playergender other", DOOM1AND2 },
{ "playergender unknown", DOOM1AND2 },
{ "playername ", DOOM1AND2 },
{ "playername \"you\"", DOOM1AND2 },
{ "playername you", DOOM1AND2 },
Expand Down
2 changes: 1 addition & 1 deletion src/c_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -3340,7 +3340,7 @@ static void kill_cmd_func2(char *cmd, char *parms)
playername,
preferredpronoun(reflexive),
preferredpronoun(personal),
(playergender == playergender_other ? "have" : "has"),
(playergender == playergender_unknown ? "have" : "has"),
(isvowel(powerups[pw_invulnerability][0]) ? "an" : "a"),
powerups[pw_invulnerability]);

Expand Down
2 changes: 1 addition & 1 deletion src/m_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ valuealias_t valuealiases[] =
{ "low", 0, DETAILVALUEALIAS }, { "high", 1, DETAILVALUEALIAS },
{ "american", 0, ENGLISHVALUEALIAS }, { "british", 1, ENGLISHVALUEALIAS },
{ "international", 1, ENGLISHVALUEALIAS }, { "off", 1, GAMMAVALUEALIAS },
{ "other", 0, GENDERVALUEALIAS }, { "male", 1, GENDERVALUEALIAS },
{ "unknown", 0, GENDERVALUEALIAS }, { "male", 1, GENDERVALUEALIAS },
{ "female", 2, GENDERVALUEALIAS }, { "off", 0, SUCKSVALUEALIAS },
{ "imperial", 0, UNITSVALUEALIAS }, { "metric", 1, UNITSVALUEALIAS },
{ "adaptive", -1, VSYNCVALUEALIAS }, { "off", 0, VSYNCVALUEALIAS },
Expand Down
4 changes: 2 additions & 2 deletions src/m_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ enum

enum
{
playergender_other,
playergender_unknown,
playergender_male,
playergender_female
};
Expand Down Expand Up @@ -566,7 +566,7 @@ enum

#define negativehealth_default true

#define playergender_min playergender_other
#define playergender_min playergender_unknown
#define playergender_default playergender_male
#define playergender_max playergender_female

Expand Down

0 comments on commit ba033e0

Please sign in to comment.