Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Dec 18, 2024
1 parent 5709dd8 commit 36f38b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/game/client/components/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ void CItems::OnRender()

if(pPickup->InDDNetTile())
{
if(auto *pPrev = (CPickup *)GameClient()->m_PrevPredictedWorld.GetEntity(pPickup->GetId(), CGameWorld::ENTTYPE_PICKUP))
if(auto *pPrev = (CPickup *)GameClient()->m_PredictedWorld.GetEntity(pPickup->GetId(), CGameWorld::ENTTYPE_PICKUP))
{
CNetObj_Pickup Data, Prev;
pPickup->FillInfo(&Data);
Expand Down
6 changes: 3 additions & 3 deletions src/game/client/gameclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ void CGameClient::OnReset()
m_GameWorld.Clear();
m_GameWorld.m_WorldConfig.m_InfiniteAmmo = true;
m_PredictedWorld.CopyWorld(&m_GameWorld);
m_PrevPredictedWorld.CopyWorld(&m_PredictedWorld);
m_PrevPredictedWorld.CopyWorld(&m_GameWorld);

m_vSnapEntities.clear();

Expand Down Expand Up @@ -2399,8 +2399,8 @@ void CGameClient::OnPredict()
}
}

if(g_Config.m_ClFastInput)
m_PredictedWorld.CopyWorld(&m_PrevPredictedWorld);
//if(g_Config.m_ClFastInput)
// m_PredictedWorld.CopyWorld(&m_PrevPredictedWorld);

if(g_Config.m_ClRemoveAnti)
{
Expand Down

0 comments on commit 36f38b6

Please sign in to comment.