* Updated to ZDoom r3188:

- Fixed: PIT_CheckLine() always called CheckForPushSpecial() with the front of the line, even if the actor was hitting it from the back.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1209 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
gez 2011-04-22 07:25:04 +00:00
parent a55656cc69
commit 4395e8e5a0
2 changed files with 4 additions and 3 deletions

View file

@ -655,7 +655,8 @@ bool PIT_CheckLine (line_t *ld, const FBoundingBox &box, FCheckPosition &tm)
P_DamageMobj (tm.thing, NULL, NULL, tm.thing->Mass >> 5, NAME_Melee);
}
tm.thing->BlockingLine = ld;
CheckForPushSpecial (ld, 0, tm.thing);
// Calculate line side based on the actor's original position, not the new one.
CheckForPushSpecial (ld, P_PointOnLineSide(tm.thing->x, tm.thing->y, ld), tm.thing);
return false;
}
}