Skip to content

Commit

Permalink
Heretic: Added todo comment in Z move check
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 19, 2012
1 parent 6aef11e commit 0f3c10d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doomsday/plugins/jheretic/src/p_mobj.c
Expand Up @@ -886,6 +886,11 @@ void P_MobjThinker(mobj_t* mobj)
if(mobj->thinker.function != P_MobjThinker)
return; // mobj was removed

/**
* @todo Instead of this post-move check, we should fix the root cause why
* the SKULLFLYer is ending up in an invalid position during P_MobjMoveZ().
* If only the movement validity checks weren't so convoluted... -jk
*/
if((mobj->flags & MF_SKULLFLY) && !P_CheckPosition(mobj, mobj->origin))
{
// Let's not get stuck.
Expand Down

0 comments on commit 0f3c10d

Please sign in to comment.