Merge branch 'SQC-15_online' of https://github.com/CegepSTH/SQCSim2023 into SQC-15_online
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user