Remove the dead code.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user