diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-12-14 13:14:43 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-12-14 13:14:43 +0200 |
commit | f501cfd799fb156a32df8791fa3b3ad590d3c0d8 (patch) | |
tree | 05bc86fcc6b7fec5a700bdc63b11b74caeb2212e /src/client.cpp | |
parent | be2c7dfb97c4e617eaa2fef94da822c5e4e9ffd1 (diff) | |
download | minetest-f501cfd799fb156a32df8791fa3b3ad590d3c0d8.tar.gz minetest-f501cfd799fb156a32df8791fa3b3ad590d3c0d8.tar.bz2 minetest-f501cfd799fb156a32df8791fa3b3ad590d3c0d8.zip |
tinkering around
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client.cpp b/src/client.cpp index bfec8b730..ed3a43759 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1401,11 +1401,11 @@ void Client::addNodeFromInventory(v3s16 nodepos, u16 i) } #endif -void Client::clickGround(u8 button, v3s16 nodepos_undersurface, +void Client::pressGround(u8 button, v3s16 nodepos_undersurface, v3s16 nodepos_oversurface, u16 item) { if(connectedAndInitialized() == false){ - dout_client<<DTIME<<"Client::clickGround() " + dout_client<<DTIME<<"Client::pressGround() " "cancelled (not connected)" <<std::endl; return; @@ -1421,7 +1421,7 @@ void Client::clickGround(u8 button, v3s16 nodepos_undersurface, */ u8 datasize = 2 + 1 + 6 + 6 + 2; SharedBuffer<u8> data(datasize); - writeU16(&data[0], TOSERVER_CLICK_GROUND); + writeU16(&data[0], TOSERVER_PRESS_GROUND); writeU8(&data[2], button); writeV3S16(&data[3], nodepos_undersurface); writeV3S16(&data[9], nodepos_oversurface); |