aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorEkdohibs <nathanael.courant@laposte.net>2017-03-24 15:56:10 +0100
committerAuke Kok <sofar+github@foo-projects.org>2017-04-06 21:27:29 -0700
commita5c9174bad462c27d7086d6db7fbfad7d0cea3da (patch)
treef35b7f36fe1a826b3a644e4ad8fe4d347a21aaad /src/network
parent08b680d58890ce896f5d57404adc84eb7b96fd79 (diff)
downloadminetest-a5c9174bad462c27d7086d6db7fbfad7d0cea3da.tar.gz
minetest-a5c9174bad462c27d7086d6db7fbfad7d0cea3da.tar.bz2
minetest-a5c9174bad462c27d7086d6db7fbfad7d0cea3da.zip
Fix spacing
Diffstat (limited to 'src/network')
-rw-r--r--src/network/serverpackethandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp
index 740096bf1..26c297a8f 100644
--- a/src/network/serverpackethandler.cpp
+++ b/src/network/serverpackethandler.cpp
@@ -1384,7 +1384,7 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)
float max_d = BS * playeritem_def.range;
InventoryList *hlist = playersao->getInventory()->getList("hand");
const ItemDefinition &hand_def =
- hlist?(hlist->getItem(0).getDefinition(m_itemdef)):(m_itemdef->get(""));
+ hlist ? (hlist->getItem(0).getDefinition(m_itemdef)) : (m_itemdef->get(""));
float max_d_hand = BS * hand_def.range;
if (max_d < 0 && max_d_hand >= 0)
max_d = max_d_hand;
@@ -1523,7 +1523,7 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)
if (!params.diggable) {
InventoryList *hlist = playersao->getInventory()->getList("hand");
const ItemDefinition &hand =
- hlist?hlist->getItem(0).getDefinition(m_itemdef):m_itemdef->get("");
+ hlist ? hlist->getItem(0).getDefinition(m_itemdef) : m_itemdef->get("");
const ToolCapabilities *tp = hand.tool_capabilities;
if (tp)
params = getDigParams(m_nodedef->get(n).groups, tp);