summaryrefslogtreecommitdiffstats
path: root/src/UI/EnchantingWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/UI/EnchantingWindow.cpp')
-rw-r--r--src/UI/EnchantingWindow.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/UI/EnchantingWindow.cpp b/src/UI/EnchantingWindow.cpp
index 9ebb70f32..6f6a1db72 100644
--- a/src/UI/EnchantingWindow.cpp
+++ b/src/UI/EnchantingWindow.cpp
@@ -12,9 +12,7 @@
cEnchantingWindow::cEnchantingWindow(Vector3i a_BlockPos, const AString & a_Title) :
- cWindow(wtEnchantment, a_Title),
- m_SlotArea(),
- m_BlockPos(a_BlockPos)
+ cWindow(wtEnchantment, a_Title), m_SlotArea(), m_BlockPos(a_BlockPos)
{
m_SlotArea = new cSlotAreaEnchanting(*this, m_BlockPos);
m_SlotAreas.push_back(m_SlotArea);
@@ -50,25 +48,27 @@ short cEnchantingWindow::GetProperty(size_t a_Property)
-void cEnchantingWindow::DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply)
+void cEnchantingWindow::DistributeStack(
+ cItem & a_ItemStack,
+ int a_Slot,
+ cPlayer & a_Player,
+ cSlotArea * a_ClickedArea,
+ bool a_ShouldApply
+)
{
cSlotAreas AreasInOrder;
if (a_ClickedArea == m_SlotAreas[0])
{
// Enchanting Area
- AreasInOrder.push_back(m_SlotAreas[2]); /* Hotbar */
- AreasInOrder.push_back(m_SlotAreas[1]); /* Inventory */
+ AreasInOrder.push_back(m_SlotAreas[2]); /* Hotbar */
+ AreasInOrder.push_back(m_SlotAreas[1]); /* Inventory */
Super::DistributeStackToAreas(a_ItemStack, a_Player, AreasInOrder, a_ShouldApply, true);
}
else
{
// Inventory or Hotbar
- AreasInOrder.push_back(m_SlotAreas[0]); /* Enchanting */
+ AreasInOrder.push_back(m_SlotAreas[0]); /* Enchanting */
Super::DistributeStackToAreas(a_ItemStack, a_Player, AreasInOrder, a_ShouldApply, false);
}
}
-
-
-
-