From 8656e149c8820272a882406912790f0075ed5f28 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 30 Jun 2015 15:50:15 +0100 Subject: Improved maps --- src/Inventory.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/Inventory.cpp') diff --git a/src/Inventory.cpp b/src/Inventory.cpp index 6b3c8e62f..455a4bbe5 100644 --- a/src/Inventory.cpp +++ b/src/Inventory.cpp @@ -580,21 +580,9 @@ bool cInventory::AddToBar(cItem & a_Item, const int a_Offset, const int a_Size, void cInventory::UpdateItems(void) { const cItem & Slot = GetEquippedItem(); - - if (Slot.IsEmpty()) - { - return; - } - - switch (Slot.m_ItemType) + if (!Slot.IsEmpty()) { - case E_ITEM_MAP: - { - ItemHandler(Slot.m_ItemType)->OnUpdate(m_Owner.GetWorld(), &m_Owner, Slot); - break; - } - - default: break; + ItemHandler(Slot.m_ItemType)->OnUpdate(m_Owner.GetWorld(), &m_Owner, Slot); } } -- cgit v1.2.3