Remove the dead code.

This commit is contained in:
MarcEricMartel
2023-12-16 16:13:20 -05:00
parent 4df53a5f9b
commit 678776d6e6
4 changed files with 5 additions and 112 deletions

View File

@@ -17,6 +17,9 @@ bool Bullet::Update(World* world, float elapsedtime, int perframe, std::unordere
m_currentpos += m_velocity * elapsedtime;
for (auto& [key, player] : mapPlayer) {
if (key == m_shooter_id)
continue;
bool hit = false;
if ((m_currentpos - player->GetPosition()).Length() < 1.5f) {
hit = true;