Fix getting stuck atop solid doodads

The platformer physics change introduced a regression where the player
character got "stuck" when standing on top of solid doodads.

Fixes #21
This commit is contained in:
Noah 2020-04-04 21:21:11 -07:00
parent 08e65c32b5
commit 2bd420ff54

View File

@ -205,7 +205,7 @@ func (w *Canvas) loopActorCollision() error {
// Did A protest?
if err == scripting.ErrReturnFalse {
// Are they on top?
aHitbox := collision.GetBoundingRectHitbox(a.Drawing, a.Hitbox())
aHitbox := collision.GetBoundingRectHitbox(a, a.Hitbox())
if render.AbsInt(test.Y+test.H-aHitbox.Y) == 0 {
onTop = true
onTopY = test.Y