mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
fix DisablePlayerControl logic
This commit is contained in:
parent
1511eb3549
commit
378fcc2460
1 changed files with 8 additions and 7 deletions
|
@ -399,14 +399,14 @@ private:
|
|||
}
|
||||
else
|
||||
player.setForwardBackward (0);
|
||||
}
|
||||
|
||||
if (poller.isDown(A_Jump) && mControlSwitch["playerjumping"])
|
||||
player.setUpDown (1);
|
||||
else if (poller.isDown(A_Crouch))
|
||||
player.setUpDown (-1);
|
||||
else
|
||||
player.setUpDown (0);
|
||||
if (poller.isDown(A_Jump) && mControlSwitch["playerjumping"])
|
||||
player.setUpDown (1);
|
||||
else if (poller.isDown(A_Crouch))
|
||||
player.setUpDown (-1);
|
||||
else
|
||||
player.setUpDown (0);
|
||||
}
|
||||
}
|
||||
|
||||
// Switch between gui modes. Besides controlling the Gui windows
|
||||
|
@ -444,6 +444,7 @@ private:
|
|||
player.setLeftRight(0);
|
||||
player.setForwardBackward(0);
|
||||
player.setAutoMove(false);
|
||||
player.setUpDown(0);
|
||||
} else if (sw == "playerjumping" && !value) {
|
||||
/// \fixme maybe crouching at this time
|
||||
player.setUpDown(0);
|
||||
|
|
Loading…
Reference in a new issue