From ff5cd3c0589c86906b19ef1dc93350fe5408c0e6 Mon Sep 17 00:00:00 2001 From: Lpsd <40902730+Lpsd@users.noreply.github.com> Date: Sat, 14 Oct 2023 10:00:47 +0100 Subject: [PATCH] Cleanup comments from #3172 --- Client/game_sa/CModelInfoSA.cpp | 2 -- Client/mods/deathmatch/logic/CClientGame.cpp | 5 ----- Client/multiplayer_sa/CMultiplayerSA.cpp | 3 +-- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Client/game_sa/CModelInfoSA.cpp b/Client/game_sa/CModelInfoSA.cpp index b9a72e0caa..793d64d861 100644 --- a/Client/game_sa/CModelInfoSA.cpp +++ b/Client/game_sa/CModelInfoSA.cpp @@ -2105,7 +2105,6 @@ bool CModelInfoSA::Render(CMatrix& matrix) { CBaseModelInfoSAInterface* pModelInfoSAInterface = GetInterface(); RwObject* pRwObject = pModelInfoSAInterface->pRwObject; - // RwEngineInstance->dOpenDevice.fpRenderStateSet(rwRENDERSTATEALPHATESTFUNCTIONREF, 100u); RwFrame* pFrame = RpGetFrame(pRwObject); RwFrameSetIdentity(pFrame); RwMatrix rwMatrix; @@ -2115,7 +2114,6 @@ bool CModelInfoSA::Render(CMatrix& matrix) rwMatrix.pos = (RwV3d&)matrix.vPos; RwFrameTransform(pFrame, &rwMatrix, rwCOMBINEREPLACE); RwFrameUpdateObjects(pFrame); - //RwFrameRotate(pFrame, &yaxis, rotation.fX, RwOpCombineType::rwCOMBINEREPLACE); if (pRwObject->type == RP_TYPE_ATOMIC) { diff --git a/Client/mods/deathmatch/logic/CClientGame.cpp b/Client/mods/deathmatch/logic/CClientGame.cpp index 6aad8d6aff..f57734084c 100644 --- a/Client/mods/deathmatch/logic/CClientGame.cpp +++ b/Client/mods/deathmatch/logic/CClientGame.cpp @@ -3726,11 +3726,6 @@ void CClientGame::ProjectileInitiateHandler(CClientProjectile* pProjectile) void CClientGame::Render3DStuffHandler() { - //auto modelInfo = g_pGame->GetModelInfo(1632); - //if (!modelInfo->IsLoaded()) - // return; - - //modelInfo->Render(CVector(0,30,6.0f)); } void CClientGame::PreRenderSkyHandler() diff --git a/Client/multiplayer_sa/CMultiplayerSA.cpp b/Client/multiplayer_sa/CMultiplayerSA.cpp index b1ac220ddd..ce405c95b4 100644 --- a/Client/multiplayer_sa/CMultiplayerSA.cpp +++ b/Client/multiplayer_sa/CMultiplayerSA.cpp @@ -3053,8 +3053,7 @@ void _declspec(naked) HOOK_Render3DStuff() { pushad } - //if (m_pRender3DStuffHandler) m_pRender3DStuffHandler(); - + _asm { popad