From e5054a51db31a68dcff2e0d0aed3551b11fe365e Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Mon, 27 Jun 2022 23:05:31 +0200 Subject: [PATCH] Remove useless code --- Source/missiles.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Source/missiles.cpp b/Source/missiles.cpp index 07a599b03..d9eb97d78 100644 --- a/Source/missiles.cpp +++ b/Source/missiles.cpp @@ -2158,11 +2158,6 @@ void AddGolem(Missile &missile, const AddMissileParameter ¶meter) int playerId = missile._misource; - for (auto &other : Missiles) { - if (other._mitype == MIS_GOLEM && &other != &missile && other._misource == playerId) { - return; - } - } if (Monsters[playerId].position.tile != GolemHoldingCell && playerId == MyPlayerId) M_StartKill(playerId, playerId);