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/genericobject.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/genericobject.cpp')
-rw-r--r-- | src/genericobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/genericobject.cpp b/src/genericobject.cpp index c4660cf44..07d2445b4 100644 --- a/src/genericobject.cpp +++ b/src/genericobject.cpp @@ -118,7 +118,7 @@ std::string gob_cmd_update_armor_groups(const ItemGroupList &armor_groups) } std::string gob_cmd_update_physics_override(float physics_override_speed, float physics_override_jump, - float physics_override_gravity, bool sneak, bool sneak_glitch) + float physics_override_gravity, bool sneak, bool sneak_glitch, bool new_move) { std::ostringstream os(std::ios::binary); // command @@ -130,6 +130,7 @@ std::string gob_cmd_update_physics_override(float physics_override_speed, float // these are sent inverted so we get true when the server sends nothing writeU8(os, !sneak); writeU8(os, !sneak_glitch); + writeU8(os, !new_move); return os.str(); } |