diff options
author | andrew <xdotftw@gmail.com> | 2014-02-18 19:50:08 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-02-18 19:50:08 +0100 |
commit | 393ca0221dfdb6dabadcf293fea86a830453c938 (patch) | |
tree | 53a7eaf9eaf4b896e374e9c9ed24e66f1eb2fa64 /src/ClientHandle.cpp | |
parent | Map item handler; Fixed several bugs (diff) | |
download | cuberite-393ca0221dfdb6dabadcf293fea86a830453c938.tar cuberite-393ca0221dfdb6dabadcf293fea86a830453c938.tar.gz cuberite-393ca0221dfdb6dabadcf293fea86a830453c938.tar.bz2 cuberite-393ca0221dfdb6dabadcf293fea86a830453c938.tar.lz cuberite-393ca0221dfdb6dabadcf293fea86a830453c938.tar.xz cuberite-393ca0221dfdb6dabadcf293fea86a830453c938.tar.zst cuberite-393ca0221dfdb6dabadcf293fea86a830453c938.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index a2cbaefff..efc5a9f64 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1190,19 +1190,6 @@ void cClientHandle::HandleSlotSelected(short a_SlotNum) { m_Player->GetInventory().SetEquippedSlotNum(a_SlotNum); m_Player->GetWorld()->BroadcastEntityEquipment(*m_Player, 0, m_Player->GetInventory().GetEquippedItem(), this); - - const cItem & Item = m_Player->GetInventory().GetEquippedItem(); - if (Item.m_ItemType == E_ITEM_MAP) - { - // TODO 2014-02-14 xdot: Do not hardcode this. - cMap * Map = m_Player->GetWorld()->GetMapData(Item.m_ItemDamage); - - if (Map != NULL) - { - // TODO 2014-02-14 xdot: Optimization - Do not send the whole map. - Map->SendTo(*this); - } - } } @@ -2079,6 +2066,15 @@ void cClientHandle::SendMapColumn(int a_ID, int a_X, int a_Y, const Byte * a_Col +void cClientHandle::SendMapDecorators(int a_ID, const cMapDecoratorList & a_Decorators) +{ + m_Protocol->SendMapDecorators(a_ID, a_Decorators); +} + + + + + void cClientHandle::SendMapInfo(int a_ID, unsigned int a_Scale) { m_Protocol->SendMapInfo(a_ID, a_Scale); |