Renderer: Implement frontal third-person

This commit is contained in:
Er2
2023-12-02 18:42:10 +03:00
parent 56ce7e8073
commit 5729be0457
2 changed files with 16 additions and 1 deletions

View File

@@ -466,7 +466,13 @@ void Minecraft::tickInput()
if (getOptions()->isKey(KM_TOGGLE3RD, keyCode))
{
getOptions()->m_bThirdPerson = !getOptions()->m_bThirdPerson;
bool thirdPerson = getOptions()->m_bThirdPerson;
if (thirdPerson && !getOptions()->field_241)
getOptions()->field_241 = 1;
else {
getOptions()->m_bThirdPerson = !getOptions()->m_bThirdPerson;
getOptions()->field_241 = 0;
}
}
else if (getOptions()->isKey(KM_MENU_CANCEL, keyCode))
{