summaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-10 21:43:40 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-11 15:22:36 +0200
commitecd5c5f9206437c320da029680cf1d053b644761 (patch)
treefd8c439dc142aa2ae9e87ec75dfcf71c8c12f868 /src/client.h
parent91d1186cbb0e651de919e17e6808c75c20a0ef6f (diff)
downloadminetest-ecd5c5f9206437c320da029680cf1d053b644761.tar.gz
minetest-ecd5c5f9206437c320da029680cf1d053b644761.tar.bz2
minetest-ecd5c5f9206437c320da029680cf1d053b644761.zip
Clients inform server on wielded item
This is done with the new TOSERVER_PLAYERITEM message, that informs the server on the index of the wielded item.
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h
index d21764f75..963eb6702 100644
--- a/src/client.h
+++ b/src/client.h
@@ -318,6 +318,8 @@ private:
void sendPlayerPos();
// This sends the player's current name etc to the server
void sendPlayerInfo();
+ // Send the item number 'item' as player item to the server
+ void sendPlayerItem(u16 item);
float m_packetcounter_timer;
float m_connection_reinit_timer;