From 2bd420ff54ecb11bbd5ad7cf04cc67a78b04ac44 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sat, 4 Apr 2020 21:21:11 -0700 Subject: [PATCH] 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 --- pkg/uix/actor_collision.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/uix/actor_collision.go b/pkg/uix/actor_collision.go index b56cb76..ed28a65 100644 --- a/pkg/uix/actor_collision.go +++ b/pkg/uix/actor_collision.go @@ -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