Skip to content

Commit

Permalink
Fixed floatbob floor clip bug in jDoom64.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Mar 7, 2008
1 parent b5f3a90 commit b514426
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions doomsday/plugins/jdoom64/src/p_mobj.c
Expand Up @@ -809,12 +809,8 @@ void P_MobjThinker(mobj_t *mobj)
{ // Floating item bobbing motion.
// Keep it on the floor.
mobj->pos[VZ] = mobj->floorZ;
#if __JHERETIC__
// Negative floorclip raises the mobj off the floor.
mobj->floorClip = -mobj->special1;
#elif __JDOOM__
mobj->floorClip = 0;
#endif

if(mobj->floorClip < -MAX_BOB_OFFSET)
{
// We don't want it going through the floor.
Expand Down

0 comments on commit b514426

Please sign in to comment.