From 296a1c3aa0bdb27e7ee9b53f0382938d0fe6d1a0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 4 May 2018 11:34:57 -0400 Subject: Fixed bug with upward tilemap collision A body moving upward would have its transform incorrectly measured against the map collision boundaries. --- src/systems/pondering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/systems/pondering.cpp b/src/systems/pondering.cpp index f5d3df2..ed14772 100644 --- a/src/systems/pondering.cpp +++ b/src/systems/pondering.cpp @@ -440,7 +440,7 @@ void PonderingSystem::tickBody( it++) { // Check that the boundary is in range for the other axis. - if ((result.newX + transformable.h > it->second.lower) && + if ((result.newX + transformable.w > it->second.lower) && (result.newX < it->second.upper)) { // We have a collision! -- cgit 1.4.1