Browse Source

Remove dead code

Now that Reflection does not leave behind a missile, this code does
nothing
pull/2679/head
Anders Jenbo 5 years ago
parent
commit
aae1f7f773
  1. 3
      Source/missiles.cpp

3
Source/missiles.cpp

@ -1355,9 +1355,6 @@ void AddReflection(MissileStruct &missile, Point /*dst*/, int /*midir*/)
auto &player = Players[missile._misource];
if (player.wReflections > 0 && !CanAddEffect(player, MIS_REFLECT))
return;
int add = (missile._mispllvl != 0 ? missile._mispllvl : 2) * player._pLevel;
if (player.wReflections + add >= std::numeric_limits<uint16_t>::max())
add = 0;

Loading…
Cancel
Save