From f45d9e195a3dc0c2a0a58eaddc1515952f6bb5c3 Mon Sep 17 00:00:00 2001 From: Dino <8dino2@gmail.com> Date: Sun, 3 Sep 2023 10:01:03 -0400 Subject: [PATCH] Some more fixes --- actionlite/g_local.h | 1 + actionlite/p_client.cpp | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/actionlite/g_local.h b/actionlite/g_local.h index 9d50299..7637071 100644 --- a/actionlite/g_local.h +++ b/actionlite/g_local.h @@ -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 diff --git a/actionlite/p_client.cpp b/actionlite/p_client.cpp index 217697b..478db46 100644 --- a/actionlite/p_client.cpp +++ b/actionlite/p_client.cpp @@ -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