This commit is contained in:
MarcEricMartel
2023-12-06 15:47:14 -05:00
parent 7077b617be
commit db854c77b2
3 changed files with 8 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ bool Bullet::Update(World* world, float elapsedtime, int perframe, std::unordere
}
if (hit && !player->AmIDead()) {
player->InflictDamage(damage);
player->m_hit = true;
if (player->AmIDead())
player->Killer = m_shooter_id;