1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 04:45:34 +00:00

fix DisablePlayerControl logic

This commit is contained in:
greye 2012-08-09 11:10:18 +04:00
parent 1511eb3549
commit 378fcc2460

View file

@ -399,7 +399,6 @@ private:
} }
else else
player.setForwardBackward (0); player.setForwardBackward (0);
}
if (poller.isDown(A_Jump) && mControlSwitch["playerjumping"]) if (poller.isDown(A_Jump) && mControlSwitch["playerjumping"])
player.setUpDown (1); player.setUpDown (1);
@ -408,6 +407,7 @@ private:
else else
player.setUpDown (0); player.setUpDown (0);
} }
}
// Switch between gui modes. Besides controlling the Gui windows // Switch between gui modes. Besides controlling the Gui windows
// this also makes sure input is directed to the right place // this also makes sure input is directed to the right place
@ -444,6 +444,7 @@ private:
player.setLeftRight(0); player.setLeftRight(0);
player.setForwardBackward(0); player.setForwardBackward(0);
player.setAutoMove(false); player.setAutoMove(false);
player.setUpDown(0);
} else if (sw == "playerjumping" && !value) { } else if (sw == "playerjumping" && !value) {
/// \fixme maybe crouching at this time /// \fixme maybe crouching at this time
player.setUpDown(0); player.setUpDown(0);