- Fixed: The only time bestslideline is ever NULL is before it ever gets set.
That means my P_BounceWall() "fix" from March 6 wasn't really a working fix. SVN r807 (trunk)
This commit is contained in:
parent
ce811319a7
commit
3c6c60c730
2 changed files with 4 additions and 2 deletions
|
|
@ -2449,7 +2449,7 @@ bool P_BounceWall (AActor *mo)
|
|||
leady = mo->y-mo->radius;
|
||||
}
|
||||
bestslidefrac = FRACUNIT+1;
|
||||
bestslideline = NULL;
|
||||
bestslideline = BlockingLine;
|
||||
if (P_PathTraverse(leadx, leady, leadx+mo->momx, leady+mo->momy,
|
||||
PT_ADDLINES, PTR_BounceTraverse) && BlockingLine == NULL)
|
||||
{ // Could not find a wall, so bounce off the floor/ceiling instead.
|
||||
|
|
@ -2466,7 +2466,7 @@ bool P_BounceWall (AActor *mo)
|
|||
return true;
|
||||
}
|
||||
}
|
||||
line = bestslideline ? bestslideline : BlockingLine;
|
||||
line = bestslideline;
|
||||
|
||||
if (line->special == Line_Horizon)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue