remove m_ClShowDirectionBelow

Show keystrokes always above the players
This commit is contained in:
c0d3d3v 2022-02-15 11:59:07 +01:00
parent 724a49dc59
commit 94c1d7fe66
No known key found for this signature in database
GPG key ID: 068AF680530DFF31
2 changed files with 2 additions and 9 deletions

View file

@ -380,7 +380,6 @@ MACRO_CONFIG_INT(ClChatReset, cl_chat_reset, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_S
MACRO_CONFIG_INT(ClChatOld, cl_chat_old, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Old chat style: No tee, no background");
MACRO_CONFIG_INT(ClShowDirection, cl_show_direction, 1, 0, 2, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Show key presses (1 = other players', 2 = also your own)")
MACRO_CONFIG_INT(ClShowDirectionBelow, cl_show_direction_below, 0, 0, 1, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Position of the shown key presses (0 = above players, 1 = below players)")
MACRO_CONFIG_INT(ClHttpMapDownload, cl_http_map_download, 1, 0, 1, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Try fast HTTP map download first")
MACRO_CONFIG_INT(ClOldGunPosition, cl_old_gun_position, 0, 0, 1, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Tees hold gun a bit higher like in TW 0.6.1 and older")
MACRO_CONFIG_INT(ClConfirmDisconnectTime, cl_confirm_disconnect_time, 20, -1, 1440, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Confirmation popup before disconnecting after game time (in minutes, -1 to turn off, 0 to always turn on)")

View file

@ -61,14 +61,8 @@ void CNamePlates::RenderNameplatePos(vec2 Position, const CNetObj_PlayerInfo *pP
if((pPlayerInfo->m_Local && ShowDirection == 2) || (!pPlayerInfo->m_Local && ShowDirection >= 1))
{
const float ShowDirectionImgSize = 22.0f;
vec2 ShowDirectionPos;
if(g_Config.m_ClShowDirectionBelow)
ShowDirectionPos = vec2(Position.x - 11.0f, Position.y + ShowDirectionImgSize);
else
{
YOffset -= ShowDirectionImgSize;
ShowDirectionPos = vec2(Position.x - 11.0f, YOffset);
}
YOffset -= ShowDirectionImgSize;
vec2 ShowDirectionPos = vec2(Position.x - 11.0f, YOffset);
if(m_pClient->m_Snap.m_aCharacters[pPlayerInfo->m_ClientID].m_Cur.m_Direction == -1)
{