mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 10:11:02 +00:00
fix a slipup in A_DoNPCPain I just noticed I made, whoops
This commit is contained in:
parent
61eb05eab2
commit
266fa05e15
1 changed files with 1 additions and 1 deletions
|
@ -11896,7 +11896,7 @@ void A_DoNPCPain(mobj_t *actor)
|
||||||
|
|
||||||
if (locvar1)
|
if (locvar1)
|
||||||
{
|
{
|
||||||
if (actor->info->spawnhealth)
|
if (!actor->info->spawnhealth)
|
||||||
return; // there's something very wrong here if you're using this action on something with no starting health
|
return; // there's something very wrong here if you're using this action on something with no starting health
|
||||||
locvar1 += ((FRACUNIT - locvar1)/actor->info->spawnhealth)*actor->health;
|
locvar1 += ((FRACUNIT - locvar1)/actor->info->spawnhealth)*actor->health;
|
||||||
hspeed = FixedMul(hspeed, locvar1);
|
hspeed = FixedMul(hspeed, locvar1);
|
||||||
|
|
Loading…
Reference in a new issue