- Fixed: P_SpawnBlood() would set Strife's Blood to the Spray state and then promptly go about setting it right back to the Spawn state.

SVN r3862 (trunk)
This commit is contained in:
Randy Heit 2012-09-01 22:39:11 +00:00
parent 111b5c60c1
commit ef55ce8684

View file

@ -4839,13 +4839,16 @@ void P_SpawnBlood (fixed_t x, fixed_t y, fixed_t z, angle_t dir, int damage, AAc
// Moved out of the blood actor so that replacing blood is easier // Moved out of the blood actor so that replacing blood is easier
if (gameinfo.gametype & GAME_DoomStrifeChex) if (gameinfo.gametype & GAME_DoomStrifeChex)
{ {
FState *state = th->FindState(NAME_Spray);
if (gameinfo.gametype == GAME_Strife) if (gameinfo.gametype == GAME_Strife)
{ {
if (damage > 13) if (damage > 13)
{ {
FState *state = th->FindState(NAME_Spray); FState *state = th->FindState(NAME_Spray);
if (state != NULL) th->SetState (state); if (state != NULL)
{
th->SetState (state);
goto statedone;
}
} }
else damage += 2; else damage += 2;
} }