mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- the last one in aiunicult.cpp which the search did not show.
This commit is contained in:
parent
627318c39b
commit
1f57322d56
1 changed files with 1 additions and 2 deletions
|
@ -319,7 +319,6 @@ static void ThrowThing(DBloodActor* actor, bool impact)
|
||||||
int dist = approxDist(dx, dy);
|
int dist = approxDist(dx, dy);
|
||||||
|
|
||||||
auto actLeech = leechIsDropped(actor);
|
auto actLeech = leechIsDropped(actor);
|
||||||
XSPRITE* pXLeech = actLeech && actLeech->hasX()? &actLeech->x() : nullptr;
|
|
||||||
|
|
||||||
switch (curWeapon) {
|
switch (curWeapon) {
|
||||||
case kModernThingEnemyLifeLeech:
|
case kModernThingEnemyLifeLeech:
|
||||||
|
@ -367,7 +366,7 @@ static void ThrowThing(DBloodActor* actor, bool impact)
|
||||||
spawned->xspr.Proximity = true;
|
spawned->xspr.Proximity = true;
|
||||||
return;
|
return;
|
||||||
case kModernThingEnemyLifeLeech:
|
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;
|
else spawned->xspr.health = ((pThinkInfo->startHealth << 4) * gGameOptions.nDifficulty) >> 1;
|
||||||
|
|
||||||
sfxPlay3DSound(actor, 490, -1, 0);
|
sfxPlay3DSound(actor, 490, -1, 0);
|
||||||
|
|
Loading…
Reference in a new issue