Skip to content

Commit

Permalink
Fixed: Change to Z momentum calculation in A_PotteryExplode which res…
Browse files Browse the repository at this point in the history
…ulted in the pieces being spawned practically on top of each other (most likely the cause of this bug https://sourceforge.net/tracker/?func=detail&aid=2855375&group_id=74815&atid=542099).
  • Loading branch information
danij-deng committed Nov 7, 2009
1 parent d9fae4a commit 5d34e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/plugins/jhexen/src/a_action.c
Expand Up @@ -102,7 +102,7 @@ void C_DECL A_PotteryExplode(mobj_t* actor)
{
P_MobjChangeState(mo, P_GetState(mo->type, SN_SPAWN) + (P_Random() % 5));

mo->mom[MZ] = FIX2FLT((P_Random() & 7) + 5) * .75f;
mo->mom[MZ] = FIX2FLT(((P_Random() & 7) + 5) * (3 * FRACUNIT / 4));
mo->mom[MX] = FIX2FLT((P_Random() - P_Random()) << 10);
mo->mom[MY] = FIX2FLT((P_Random() - P_Random()) << 10);
}
Expand Down

0 comments on commit 5d34e3c

Please sign in to comment.