Oh oh oh oh oh!!!

This commit is contained in:
MarcEricMartel
2023-12-06 14:31:05 -05:00
parent 42ea83d73e
commit 242250f251
5 changed files with 40 additions and 28 deletions

View File

@@ -1332,8 +1332,6 @@ void Engine::Render(float elapsedTime) {
if (m_isSkybox) m_skybox.Render(skybox);
DrawHud(elapsedTime, bloc);
DisplayPovGun();
ProcessNotificationQueue();
if (m_damage) {
InstantDamage();
@@ -1420,8 +1418,9 @@ void Engine::Render(float elapsedTime) {
}
if (m_syncs.count(sync.timestamp)) {
Sync comp = m_syncs[sync.timestamp];
m_player.InflictDamage(sync.hp - comp.hp);
std::cout << "HP: " << sync.hp << std::endl;
//m_player.InflictDamage(sync.hp - comp.hp);
Vector3f diff = sync.position - comp.position;
@@ -1502,6 +1501,9 @@ void Engine::Render(float elapsedTime) {
glEnable(GL_CULL_FACE);
}
DrawHud(elapsedTime, bloc);
DisplayPovGun();
}
}