Skip to content

Commit 3bfcf27

Browse files
game: Fix ki charge movements when it shouldn't be moved up or down while flying and underwater
1 parent 151aefe commit 3bfcf27

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

source/game/bg_pmove.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,11 @@ static void PM_WaterMove( void ) {
807807
return;
808808
}
809809

810+
// BFP - With ki charge, the player can't move, even up or down
811+
if ( pm->ps->pm_flags & PMF_KI_CHARGE ) {
812+
pm->cmd.upmove = 0;
813+
}
814+
810815
if ( PM_CheckWaterJump() ) {
811816
PM_WaterJumpMove();
812817
return;
@@ -977,6 +982,11 @@ static void PM_FlyMove( void ) {
977982
// normal slowdown
978983
PM_Friction ();
979984

985+
// BFP - With ki charge, the player can't move, even up or down
986+
if ( pm->ps->pm_flags & PMF_KI_CHARGE ) {
987+
pm->cmd.upmove = 0;
988+
}
989+
980990
// BFP - Ultimate tier
981991
if ( pm->ps->pm_flags & PMF_ULTIMATE_TIER ) {
982992
return;

0 commit comments

Comments
 (0)