- the last one in aiunicult.cpp which the search did not show.

This commit is contained in:
Christoph Oelckers 2021-12-22 23:04:20 +01:00
parent 627318c39b
commit 1f57322d56

View file

@ -319,7 +319,6 @@ static void ThrowThing(DBloodActor* actor, bool impact)
int dist = approxDist(dx, dy);
auto actLeech = leechIsDropped(actor);
XSPRITE* pXLeech = actLeech && actLeech->hasX()? &actLeech->x() : nullptr;
switch (curWeapon) {
case kModernThingEnemyLifeLeech:
@ -367,7 +366,7 @@ static void ThrowThing(DBloodActor* actor, bool impact)
spawned->xspr.Proximity = true;
return;
case kModernThingEnemyLifeLeech:
if (actLeech != nullptr) spawned->xspr.health = pXLeech->health;
if (actLeech != nullptr) spawned->xspr.health = actLeech->xspr.health;
else spawned->xspr.health = ((pThinkInfo->startHealth << 4) * gGameOptions.nDifficulty) >> 1;
sfxPlay3DSound(actor, 490, -1, 0);