Skip to content

Commit 1e865f4

Browse files
committed
Fixed prone while jumping
1 parent 5839d37 commit 1e865f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Player.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,9 @@ void Player :: logic_self(Freq::Time t) {
264264
snapshot();
265265
}
266266

267-
prone(m_pController->button("down").pressure() > 0.8f);
268-
267+
if (not in_air) {
268+
prone(m_pController->button("down").pressure() > 0.8f);
269+
}
269270
//if (m_pController->button("left") or m_pController->button("right")) {
270271
// if (m_pController->button("up"))
271272
// m_pChar->set_state("upward");

0 commit comments

Comments
 (0)