Skip to content

Commit

Permalink
Fixed: "Heretic: "shivering" dropped items" (see here http://sourcefo…
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Nov 9, 2009
1 parent 54d96a0 commit 7ced935
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doomsday/plugins/common/src/p_saveg.c
Expand Up @@ -1833,6 +1833,9 @@ static int SV_ReadMobj(thinker_t *th)
#endif
mo->info = &MOBJINFO[mo->type];

if(mo->info->flags2 & MF2_FLOATBOB)
mo->mom[MZ] = 0;

if(mo->info->flags & MF_SOLID)
mo->ddFlags |= DDMF_SOLID;
if(mo->info->flags2 & MF2_DONTDRAW)
Expand Down
3 changes: 2 additions & 1 deletion doomsday/plugins/jheretic/src/p_enemy.c
Expand Up @@ -1917,7 +1917,8 @@ mobj_t* P_DropItem(mobjtype_t type, mobj_t* source, int special, int chance)
{
mo->mom[MX] = FIX2FLT((P_Random() - P_Random()) << 8);
mo->mom[MY] = FIX2FLT((P_Random() - P_Random()) << 8);
mo->mom[MZ] = 5 + FIX2FLT(P_Random() << 10);
if(!(mo->info->flags2 & MF2_FLOATBOB))
mo->mom[MZ] = 5 + FIX2FLT(P_Random() << 10);

mo->flags |= MF_DROPPED;
mo->health = special;
Expand Down

0 comments on commit 7ced935

Please sign in to comment.