From 7706cb224bcdf5214d1dcac66216f308371393cc Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 18 Feb 2016 21:51:06 +0100 Subject: [PATCH] clientiface.cpp - reset m_nothing_to_send_pause_timer on setBlockNotSent - fix code style --- src/clientiface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clientiface.cpp b/src/clientiface.cpp index 2f53e30ae..c1fc83b03 100644 --- a/src/clientiface.cpp +++ b/src/clientiface.cpp @@ -391,7 +391,7 @@ void RemoteClient::SentBlock(v3s16 p) void RemoteClient::SetBlockNotSent(v3s16 p) { m_nearest_unsent_d = 0; - m_nothing_to_send_pause_timer=0.1; + m_nothing_to_send_pause_timer = 0.1; if(m_blocks_sending.find(p) != m_blocks_sending.end()) m_blocks_sending.erase(p); @@ -402,8 +402,8 @@ void RemoteClient::SetBlockNotSent(v3s16 p) void RemoteClient::SetBlocksNotSent(std::map &blocks) { m_nearest_unsent_d = 0; - m_nothing_to_send_pause_timer=0.1; - + m_nothing_to_send_pause_timer = 0.1; + for(std::map::iterator i = blocks.begin(); i != blocks.end(); ++i)