From 2ac20982e0772b94b21d95b53519bd2164632d98 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 24 Jul 2012 20:57:17 +0300 Subject: Detached inventories --- src/inventorymanager.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/inventorymanager.cpp') diff --git a/src/inventorymanager.cpp b/src/inventorymanager.cpp index 25257238b..1369cb0d7 100644 --- a/src/inventorymanager.cpp +++ b/src/inventorymanager.cpp @@ -41,30 +41,25 @@ std::string InventoryLocation::dump() const void InventoryLocation::serialize(std::ostream &os) const { - switch(type){ - case InventoryLocation::UNDEFINED: - { - os<<"undefined"; - } + switch(type){ + case InventoryLocation::UNDEFINED: + os<<"undefined"; + break; + case InventoryLocation::CURRENT_PLAYER: + os<<"current_player"; break; - case InventoryLocation::CURRENT_PLAYER: - { - os<<"current_player"; - } + case InventoryLocation::PLAYER: + os<<"player:"<