diff --git a/src/d_netinfo.cpp b/src/d_netinfo.cpp index 31e0ba451..d7c6164f6 100644 --- a/src/d_netinfo.cpp +++ b/src/d_netinfo.cpp @@ -147,12 +147,12 @@ int D_GenderToInt (const char *gender) { if (gender[0] == 'f') return GENDER_FEMALE; - else if (gender[0] == 'm') - return GENDER_MALE; else if (gender[0] == 'n') return GENDER_NEUTER; - else + else if (gender[0] == 'o') return GENDER_OBJECT; + else + return GENDER_MALE; } int D_PlayerClassToInt (const char *classname) @@ -737,8 +737,8 @@ void D_WriteUserInfoStrings (int pnum, uint8_t **stream, bool compact) case NAME_Gender: *stream += sprintf(*((char **)stream), "\\%s", *static_cast(pair->Value) == GENDER_FEMALE ? "female" : - *static_cast(pair->Value) == GENDER_MALE ? "male" : - *static_cast(pair->Value) == GENDER_NEUTER ? "neutral" : "other"); + *static_cast(pair->Value) == GENDER_NEUTER ? "neutral" : + *static_cast(pair->Value) == GENDER_OBJECT ? "other" : "male"); break; case NAME_PlayerClass: