From f501cfd799fb156a32df8791fa3b3ad590d3c0d8 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 14 Dec 2010 13:14:43 +0200 Subject: tinkering around --- src/client.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client.cpp') 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< 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); -- cgit v1.2.3