1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

remove debug prints

This commit is contained in:
scrawl 2012-05-15 22:48:14 +02:00
parent 3f4ce32727
commit 5a43fe3e5f
2 changed files with 0 additions and 11 deletions

View File

@ -235,7 +235,6 @@ void ContainerBase::drawItems()
int displayCount = iter->getRefData().getCount(); int displayCount = iter->getRefData().getCount();
if (mDragAndDrop->mIsOnDragAndDrop && *iter == *mDragAndDrop->mDraggedWidget->getUserData<MWWorld::Ptr>()) if (mDragAndDrop->mIsOnDragAndDrop && *iter == *mDragAndDrop->mDraggedWidget->getUserData<MWWorld::Ptr>())
{ {
std::cout << "beep" << std::endl;
displayCount -= mDragAndDrop->mDraggedCount; displayCount -= mDragAndDrop->mDraggedCount;
} }
if(displayCount > 0 && !(onlyMagic && MWWorld::Class::get(*iter).getEnchantment(*iter) == "" && iter->getTypeName() != typeid(ESM::Potion).name())) if(displayCount > 0 && !(onlyMagic && MWWorld::Class::get(*iter).getEnchantment(*iter) == "" && iter->getTypeName() != typeid(ESM::Potion).name()))

View File

@ -154,8 +154,6 @@ namespace MWGui
// can't be equipped, try to use instead // can't be equipped, try to use instead
boost::shared_ptr<MWWorld::Action> action = MWWorld::Class::get(ptr).use(ptr); boost::shared_ptr<MWWorld::Action> action = MWWorld::Class::get(ptr).use(ptr);
std::cout << "Item can't be equipped" << std::endl;
action->execute(); action->execute();
/// \todo scripts /// \todo scripts
@ -188,8 +186,6 @@ namespace MWGui
// equip the item in the first available slot // equip the item in the first available slot
invStore.equip(slots.first.front(), it); invStore.equip(slots.first.front(), it);
std::cout << "Equipped item in slot " << slots.first.front() << std::endl;
} }
mDragAndDrop->mIsOnDragAndDrop = false; mDragAndDrop->mIsOnDragAndDrop = false;
@ -212,14 +208,8 @@ namespace MWGui
MWWorld::ContainerStoreIterator it = invStore.getSlot(slot); MWWorld::ContainerStoreIterator it = invStore.getSlot(slot);
if (it != invStore.end()) if (it != invStore.end())
{ {
std::cout << "slot " << slot << " is equipped" << std::endl;
items.push_back(*it); items.push_back(*it);
} }
else
{
std::cout << "slot " << slot << " is empty " << std::endl;
}
} }
return items; return items;