Skip to content

Commit

Permalink
Remove CurrentInput, LatestInput from debug dummy, fix shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Jun 2, 2024
1 parent 7bdf2e6 commit 5064e8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/engine/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2652,8 +2652,6 @@ void CServer::UpdateDebugDummies(bool ForceDisconnect)
Input.m_Direction = (ClientId & 1) ? -1 : 1;
m_aClients[ClientId].m_aInputs[0].m_GameTick = Tick() + 1;
mem_copy(m_aClients[ClientId].m_aInputs[0].m_aData, &Input, minimum(sizeof(Input), sizeof(m_aClients[ClientId].m_aInputs[0].m_aData)));
m_aClients[ClientId].m_LatestInput = m_aClients[ClientId].m_aInputs[0];
m_aClients[ClientId].m_CurrentInput = 0;
}
}

Expand Down
10 changes: 5 additions & 5 deletions src/game/server/gameworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@ void CGameWorld::Tick()
GameServer()->SendChat(-1, TEAM_ALL, "Teams have been balanced");

// This is placed here so that certain weapon physics can happen before the regular Charecter Tick() to preserve physics accuracy
auto *pEnt = m_apFirstEntityTypes[ENTTYPE_CHARACTER];
for(; pEnt;)
auto *pChar = m_apFirstEntityTypes[ENTTYPE_CHARACTER];
for(; pChar;)
{
m_pNextTraverseEntity = pEnt->m_pNextTypeEntity;
((CCharacter *)pEnt)->WeaponTick();
pEnt = m_pNextTraverseEntity;
m_pNextTraverseEntity = pChar->m_pNextTypeEntity;
((CCharacter *)pChar)->WeaponTick();
pChar = m_pNextTraverseEntity;
}

// update all objects
Expand Down

0 comments on commit 5064e8a

Please sign in to comment.