From 88472b7ce68822c4487142d43308bd2fe9874e54 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Tue, 5 Nov 2013 18:36:58 +0100 Subject: Removed the obsolete SendWholeInventory(cInventory &) function. This won't compile because there's still a change in Protocol17x.cpp pending; the next commit will fix this. --- source/ClientHandle.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'source/ClientHandle.cpp') diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index 6860a29ca..3fb2b7e4c 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -255,8 +255,8 @@ void cClientHandle::Authenticate(void) // Send time m_Protocol->SendTimeUpdate(World->GetWorldAge(), World->GetTimeOfDay()); - // Send inventory - m_Player->GetInventory().SendWholeInventory(*this); + // Send contents of the inventory window + m_Protocol->SendWholeInventory(*m_Player->GetWindow()); // Send health m_Player->SendHealth(); @@ -2004,15 +2004,6 @@ void cClientHandle::SendWeather(eWeather a_Weather) -void cClientHandle::SendWholeInventory(const cInventory & a_Inventory) -{ - m_Protocol->SendWholeInventory(a_Inventory); -} - - - - - void cClientHandle::SendWholeInventory(const cWindow & a_Window) { m_Protocol->SendWholeInventory(a_Window); -- cgit v1.2.3