Let's all die!

This commit is contained in:
MarcEricMartel
2023-12-13 16:10:23 -05:00
parent 37a86d42a3
commit 49374a7dea
3 changed files with 55 additions and 9 deletions

View File

@@ -1508,6 +1508,9 @@ void Engine::Render(float elapsedTime) {
SystemNotification("syncsid be no good.");
break;
}
if (sync.timestamp == m_conn.getId()) {
m_player.SetHP(sync.hp);
}
if (m_syncs.count(sync.timestamp)) {
Sync comp = m_syncs[sync.timestamp];
m_otherplayerpos = sync.position;