Skip to content

Commit

Permalink
Fixed All Games: Potential infinite loop in wall slide algorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Apr 2, 2010
1 parent 6714c76 commit 89ab3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/plugins/common/src/p_map.c
Expand Up @@ -2463,7 +2463,7 @@ void P_SlideMove(mobj_t* mo)
{
float leadpos[3], trailpos[3], newPos[3];

if(!--hitcount == 3)
if(--hitcount == 0)
goto stairstep; // Don't loop forever.

// Trace along the three leading corners.
Expand Down

0 comments on commit 89ab3e9

Please sign in to comment.