Skip to content

Commit

Permalink
Fixed jHexen problem of frozen things not dying either by timeout or …
Browse files Browse the repository at this point in the history
…when hit with a non-icedamage weapon.
  • Loading branch information
danij committed Oct 24, 2008
1 parent 15f465e commit df9598f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doomsday/plugins/jhexen/src/p_enemy.c
Expand Up @@ -4194,13 +4194,13 @@ void C_DECL A_IceCheckHeadDone(mobj_t* mo)
# pragma optimize("g", off)
#endif

void C_DECL A_FreezeDeathChunks(mobj_t *mo)
void C_DECL A_FreezeDeathChunks(mobj_t* mo)
{
int i;
mobj_t *pmo;
float pos[3];
int i;
mobj_t* pmo;
float pos[3];

if(mo->mom[MX] == 0 || mo->mom[MY] == 0 || mo->mom[MZ] == 0)
if(mo->mom[MX] != 0 || mo->mom[MY] != 0 || mo->mom[MZ] != 0)
{
mo->tics = 105;
return;
Expand All @@ -4211,7 +4211,7 @@ void C_DECL A_FreezeDeathChunks(mobj_t *mo)
for(i = 12 + (P_Random() & 15); i >= 0; i--)
{
pos[VX] = mo->pos[VX];
pos[VY] = mo->pos[VX];
pos[VY] = mo->pos[VY];
pos[VZ] = mo->pos[VZ];

pos[VX] += FIX2FLT(((P_Random() - 128) * FLT2FIX(mo->radius)) >> 7);
Expand All @@ -4235,7 +4235,7 @@ void C_DECL A_FreezeDeathChunks(mobj_t *mo)
for(i = 12 + (P_Random() & 15); i >= 0; i--)
{
pos[VX] = mo->pos[VX];
pos[VY] = mo->pos[VX];
pos[VY] = mo->pos[VY];
pos[VZ] = mo->pos[VZ];

pos[VX] += FIX2FLT(((P_Random() - 128) * FLT2FIX(mo->radius)) >> 7);
Expand Down

0 comments on commit df9598f

Please sign in to comment.