Mario: fix floor detect and top movement helper

This commit is contained in:
2021-05-26 17:48:33 +02:00
parent d2bc497070
commit 734b0b58cb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ public:
return top_hit;
}
bool moveTop() {
return top_left_right;
return top_left_right && !top_hit;
}
const SDLPP::Vec2D<double> &getRightLeftPos() {
return rightleftpos;