diff options
author | MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> | 2012-11-22 21:01:31 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-11-25 19:14:24 +0200 |
commit | 3d1c481f0bdf03b59871237d810685278e87613b (patch) | |
tree | fe49c10e926b1e452e4f98561a148e2f145c27e9 /src/clientserver.h | |
parent | 756db8174aa6a05eb998cfcec8eb5127053c5ea9 (diff) | |
download | minetest-3d1c481f0bdf03b59871237d810685278e87613b.tar.gz minetest-3d1c481f0bdf03b59871237d810685278e87613b.tar.bz2 minetest-3d1c481f0bdf03b59871237d810685278e87613b.zip |
RealBadAngel's patch which allows the lua api to read pressed player keys. This should make it possible to change the player's animation based on what he is doing
Correct lua api version number
Always update animations and attachments after the entity is added to scene client side. Fixes animations not being applied in client initialization for some reason. Attachments should be re-tested now just to be safe.
Fix a segmentation fault caused by reaching materials that didn't exist in a loop for setting texture
Diffstat (limited to 'src/clientserver.h')
-rw-r--r-- | src/clientserver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/clientserver.h b/src/clientserver.h index 15a602fc8..ba535a66b 100644 --- a/src/clientserver.h +++ b/src/clientserver.h @@ -68,7 +68,8 @@ with this program; if not, write to the Free Software Foundation, Inc., PROTOCOL_VERSION 13: InventoryList field "Width" (deserialization fails with old versions) PROTOCOL_VERSION 14: - New messages for mesh and bone animation, as well as attachments + Added transfer of player pressed keys to the server + Added new messages for mesh and bone animation, as well as attachments GENERIC_CMD_SET_ANIMATION GENERIC_CMD_SET_BONE_POSITION GENERIC_CMD_SET_ATTACHMENT @@ -371,6 +372,7 @@ enum ToServerCommand [2+12] v3s32 speed*100 [2+12+12] s32 pitch*100 [2+12+12+4] s32 yaw*100 + [2+12+12+4+4] u32 keyPressed */ TOSERVER_GOTBLOCKS = 0x24, |