Some more fixes

This commit is contained in:
Dino 2023-09-03 10:01:03 -04:00
parent 4f75e08261
commit f45d9e195a
2 changed files with 13 additions and 12 deletions

View file

@ -2880,6 +2880,7 @@ struct client_respawn_t
int32_t stat_mode_intermission;
int32_t kills;
int32_t deaths;
int32_t shotsTotal; //Total number of shots
int32_t hitsTotal; //Total number of hits
int32_t streakKills; //Kills in a row

View file

@ -439,23 +439,23 @@ void CL_FixUpGender(edict_t *ent, const char *userinfo)
char val[MAX_INFO_VALUE] = { 0 };
if (!ent->client)
return false;
return;
Q_strlcpy(sk, info_skin->string, sizeof(sk));
Q_strlcpy(sk, gi.Info_ValueForKey(userinfo, "skin"), sizeof(sk));
if ((p = strchr(sk, '/')) != NULL)
*p = 0;
if (Q_stricmp(sk, "male") == 0 ||
Q_stricmp(sk, "actionmale") == 0 ||
Q_stricmp(sk, "aqmarine") == 0 ||
Q_stricmp(sk, "messiah") == 0 ||
Q_stricmp(sk, "sas") == 0 ||
Q_stricmp(sk, "terror") == 0
if (Q_strcasecmp(sk, "male") == 0 ||
Q_strcasecmp(sk, "actionmale") == 0 ||
Q_strcasecmp(sk, "aqmarine") == 0 ||
Q_strcasecmp(sk, "messiah") == 0 ||
Q_strcasecmp(sk, "sas") == 0 ||
Q_strcasecmp(sk, "terror") == 0
)
Q_strlcpy(val, "male", sizeof(val));
else if (Q_stricmp(sk, "female") == 0 ||
Q_stricmp(sk, "crackhor") == 0 ||
Q_stricmp(sk, "actionrally") == 0 ||
Q_stricmp(sk, "sydney") == 0
else if (Q_strcasecmp(sk, "female") == 0 ||
Q_strcasecmp(sk, "crackhor") == 0 ||
Q_strcasecmp(sk, "actionrally") == 0 ||
Q_strcasecmp(sk, "sydney") == 0
)
Q_strlcpy(val, "female", sizeof(val));
else