1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00

Ignore jump input while in airborne state

This commit is contained in:
Berk Özkütük 2018-09-02 20:06:31 +03:00 committed by Daniel Evans
parent 270cfea7e7
commit 8e2d17d52b

View File

@ -327,7 +327,8 @@ glm::vec3 PlayerController::getTargetPosition() {
}
void PlayerController::jump() {
if (!character->isInWater()) {
if (!character->isInWater() &&
character->isOnGround()) {
setNextActivity(std::make_unique<Activities::Jump>());
}
}