diff options
author | paramat <mat.gregory@virginmedia.com> | 2017-04-05 12:18:22 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-04-17 10:13:05 +0100 |
commit | f6da7b3fda5bbb793c7795a228ea6f2602b93fbe (patch) | |
tree | ca2bd50fdf29414cbee58576786170928676b8a5 /src/content_cao.cpp | |
parent | 907be0ab918a99c30c37c4abfe3e11722691f3bc (diff) | |
download | minetest-f6da7b3fda5bbb793c7795a228ea6f2602b93fbe.tar.gz minetest-f6da7b3fda5bbb793c7795a228ea6f2602b93fbe.tar.bz2 minetest-f6da7b3fda5bbb793c7795a228ea6f2602b93fbe.zip |
Sneak: Add option for old move code
Temporary option for the old move code for specific old sneak behaviour.
Enabled by setting the added 'new move' physics override to false.
By default 'new move' is true.
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r-- | src/content_cao.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp index 84f198b75..ac283da88 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -1652,6 +1652,7 @@ void GenericCAO::processMessage(const std::string &data) // these are sent inverted so we get true when the server sends nothing bool sneak = !readU8(is); bool sneak_glitch = !readU8(is); + bool new_move = !readU8(is); if(m_is_local_player) @@ -1662,6 +1663,7 @@ void GenericCAO::processMessage(const std::string &data) player->physics_override_gravity = override_gravity; player->physics_override_sneak = sneak; player->physics_override_sneak_glitch = sneak_glitch; + player->physics_override_new_move = new_move; } } else if (cmd == GENERIC_CMD_SET_ANIMATION) { // TODO: change frames send as v2s32 value |