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:
parent
08e65c32b5
commit
2bd420ff54
|
@ -205,7 +205,7 @@ func (w *Canvas) loopActorCollision() error {
|
||||||
// Did A protest?
|
// Did A protest?
|
||||||
if err == scripting.ErrReturnFalse {
|
if err == scripting.ErrReturnFalse {
|
||||||
// Are they on top?
|
// 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 {
|
if render.AbsInt(test.Y+test.H-aHitbox.Y) == 0 {
|
||||||
onTop = true
|
onTop = true
|
||||||
onTopY = test.Y
|
onTopY = test.Y
|
||||||
|
|
Loading…
Reference in New Issue
Block a user