|
@ -60,6 +60,7 @@ namespace SemiColinGames { |
|
|
if (oldPosition.Y > position.Y) { |
|
|
if (oldPosition.Y > position.Y) { |
|
|
int diff = playerBbox.Top - rect.Bottom; |
|
|
int diff = playerBbox.Top - rect.Bottom; |
|
|
position.Y -= diff; |
|
|
position.Y -= diff; |
|
|
|
|
|
// TODO: set ySpeed = 0 here so that bonking our head actually reduces hangtime?
|
|
|
} else { |
|
|
} else { |
|
|
standingOnGround = true; |
|
|
standingOnGround = true; |
|
|
int diff = playerBbox.Bottom - rect.Top; |
|
|
int diff = playerBbox.Bottom - rect.Top; |
|
|