From bd4e3716a1c17bfe2b7651f8b2e5787f7902c961 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Wed, 10 Apr 2019 08:58:08 +0200 Subject: [PATCH] color -> color_from_rgb --- src/game/client/gameclient.cpp | 4 ++-- src/game/client/gameclient.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index e401d08bf..1481b3da5 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -218,7 +218,7 @@ void CGameClient::OnConsoleInit() // add the some console commands Console()->Register("team", "i[team-id]", CFGFLAG_CLIENT, ConTeam, this, "Switch team"); Console()->Register("kill", "", CFGFLAG_CLIENT, ConKill, this, "Kill yourself"); - Console()->Register("color", "s[color]", CFGFLAG_CLIENT, ConColor, this, "Convert HEX RGB color (3 or 6 digits) to TW format"); + Console()->Register("color_from_rgb", "s[color]", CFGFLAG_CLIENT, ConColorFromRgb, this, "Convert HEX RGB color (3 or 6 digits) to TW formats"); // register server dummy commands for tab completion Console()->Register("tune", "s[tuning] i[value]", CFGFLAG_SERVER, 0, 0, "Tune variable to value"); @@ -1957,7 +1957,7 @@ void CGameClient::ConKill(IConsole::IResult *pResult, void *pUserData) ((CGameClient*)pUserData)->SendKill(-1); } -void CGameClient::ConColor(IConsole::IResult *pResult, void *pUserData) +void CGameClient::ConColorFromRgb(IConsole::IResult *pResult, void *pUserData) { CGameClient *pThis = (CGameClient*)pUserData; const char *pString = pResult->GetString(0); diff --git a/src/game/client/gameclient.h b/src/game/client/gameclient.h index fffd1cb2e..84a39fe2d 100644 --- a/src/game/client/gameclient.h +++ b/src/game/client/gameclient.h @@ -118,7 +118,7 @@ class CGameClient : public IGameClient static void ConTeam(IConsole::IResult *pResult, void *pUserData); static void ConKill(IConsole::IResult *pResult, void *pUserData); - static void ConColor(IConsole::IResult *pResult, void *pUserData); + static void ConColorFromRgb(IConsole::IResult *pResult, void *pUserData); static void ConchainSpecialInfoupdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData); static void ConchainSpecialDummyInfoupdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData);