diff options
author | raymoo <raymoo@users.noreply.github.com> | 2016-11-11 23:22:39 -0800 |
---|---|---|
committer | Zeno- <kde.psych@gmail.com> | 2016-11-12 17:22:39 +1000 |
commit | e4031156f13d062b03960e7ef1c9221f749f884b (patch) | |
tree | 9c7223d972521560d99a8438cbf1efcc00e3b32c /src/network/networkpacket.h | |
parent | 67ec2fa92d7441e0dab0fdc222003e916f3b5efa (diff) | |
download | minetest-e4031156f13d062b03960e7ef1c9221f749f884b.tar.gz minetest-e4031156f13d062b03960e7ef1c9221f749f884b.tar.bz2 minetest-e4031156f13d062b03960e7ef1c9221f749f884b.zip |
Add control information to player interacts (#4685)
Diffstat (limited to 'src/network/networkpacket.h')
-rw-r--r-- | src/network/networkpacket.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkpacket.h b/src/network/networkpacket.h index 72f8cabe2..524470999 100644 --- a/src/network/networkpacket.h +++ b/src/network/networkpacket.h @@ -40,6 +40,7 @@ public: u32 getSize() { return m_datasize; } u16 getPeerId() { return m_peer_id; } u16 getCommand() { return m_command; } + const u32 getRemainingBytes() const { return m_datasize - m_read_offset; } // Returns a c-string without copying. // A better name for this would be getRawString() |