mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- reverted D_GenderToInt to check full words instead of merely initial letters.
This commit is contained in:
parent
92343ec2ba
commit
a2e81167b9
1 changed files with 7 additions and 17 deletions
|
@ -146,23 +146,13 @@ FString D_UnescapeUserInfo (const char *str, size_t len)
|
|||
|
||||
int D_GenderToInt (const char *gender)
|
||||
{
|
||||
switch (gender[0])
|
||||
{
|
||||
case 'F':
|
||||
case 'f':
|
||||
return GENDER_FEMALE;
|
||||
|
||||
case 'N':
|
||||
case 'n':
|
||||
return GENDER_NEUTER;
|
||||
|
||||
case 'O':
|
||||
case 'o':
|
||||
return GENDER_OBJECT;
|
||||
|
||||
default:
|
||||
return GENDER_MALE;
|
||||
}
|
||||
if (!stricmp(gender, "female")) return GENDER_FEMALE;
|
||||
if (!stricmp(gender, "neutral")) return GENDER_NEUTER;
|
||||
if (!stricmp(gender, "neuter")) return GENDER_NEUTER;
|
||||
if (!stricmp(gender, "other")) return GENDER_OBJECT;
|
||||
if (!stricmp(gender, "object")) return GENDER_OBJECT;
|
||||
if (!stricmp(gender, "cyborg")) return GENDER_OBJECT;
|
||||
return GENDER_MALE;
|
||||
}
|
||||
|
||||
int D_PlayerClassToInt (const char *classname)
|
||||
|
|
Loading…
Reference in a new issue