diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp index 7277389f..390a142b 100644 --- a/desktop_version/src/Input.cpp +++ b/desktop_version/src/Input.cpp @@ -2258,7 +2258,7 @@ void gameinput(void) game.gravitycontrol = 1; for (size_t ie = 0; ie < obj.entities.size(); ++ie) { - if (obj.entities[ie].rule == 0) + if (obj.entities[ie].rule == 0 && obj.entities[ie].onground) { obj.entities[ie].vy = -4; obj.entities[ie].ay = -3; @@ -2273,7 +2273,7 @@ void gameinput(void) game.gravitycontrol = 0; for (size_t ie = 0; ie < obj.entities.size(); ++ie) { - if (obj.entities[ie].rule == 0) + if (obj.entities[ie].rule == 0 && obj.entities[ie].onroof) { obj.entities[ie].vy = 4; obj.entities[ie].ay = 3;