From 6fc1c2ff84b917cc086e664ebd4ab7e18f30a043 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Fri, 25 Dec 2020 19:40:01 +0700 Subject: [PATCH] client.cpp: Cleanup --- regamedll/dlls/client.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regamedll/dlls/client.cpp b/regamedll/dlls/client.cpp index 55aa32b9..4bb326ac 100644 --- a/regamedll/dlls/client.cpp +++ b/regamedll/dlls/client.cpp @@ -785,12 +785,12 @@ void Host_Say(edict_t *pEntity, BOOL teamonly) { if (CMD_ARGC_() >= 2) { - Q_sprintf(szTemp, "%s %s", (char *)pcmd, (char *)CMD_ARGS()); + Q_sprintf(szTemp, "%s %s", pcmd, CMD_ARGS()); } else { // Just a one word command, use the first word...sigh - Q_sprintf(szTemp, "%s", (char *)pcmd); + Q_sprintf(szTemp, "%s", pcmd); } p = szTemp; @@ -3637,7 +3637,7 @@ void EXT_FUNC ClientUserInfoChanged(edict_t *pEntity, char *infobuffer) if (!pPlayer->SetClientUserInfoName(infobuffer, szName)) { // so to back old name into buffer - SET_CLIENT_KEY_VALUE(pPlayer->entindex(), infobuffer, "name", (char *)STRING(pPlayer->pev->netname)); + SET_CLIENT_KEY_VALUE(pPlayer->entindex(), infobuffer, "name", STRING(pPlayer->pev->netname)); } } @@ -3936,7 +3936,7 @@ void ClientPrecache() if (!fname) break; - PRECACHE_MODEL((char *)fname); + PRECACHE_MODEL(fname); } }