From 5cdaf073be015a99e87dde4540405a69ff56eb47 Mon Sep 17 00:00:00 2001 From: MaxwellScroggs <66567983+MaxwellScroggs@users.noreply.github.com> Date: Sat, 4 Jul 2020 17:49:17 -0400 Subject: cWindow: Convert XYZ to Vector3 (#4764) --- src/UI/AnvilWindow.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'src/UI/AnvilWindow.cpp') diff --git a/src/UI/AnvilWindow.cpp b/src/UI/AnvilWindow.cpp index 6d1d673df..66499cbc9 100644 --- a/src/UI/AnvilWindow.cpp +++ b/src/UI/AnvilWindow.cpp @@ -10,12 +10,10 @@ -cAnvilWindow::cAnvilWindow(int a_BlockX, int a_BlockY, int a_BlockZ) : +cAnvilWindow::cAnvilWindow(Vector3i a_BlockPos) : cWindow(wtAnvil, "Repair"), m_RepairedItemName(""), - m_BlockX(a_BlockX), - m_BlockY(a_BlockY), - m_BlockZ(a_BlockZ) + m_BlockPos(a_BlockPos) { m_AnvilSlotArea = new cSlotAreaAnvil(*this); m_SlotAreas.push_back(m_AnvilSlotArea); @@ -49,17 +47,6 @@ void cAnvilWindow::SetRepairedItemName(const AString & a_Name, cPlayer * a_Playe -void cAnvilWindow::GetBlockPos(int & a_PosX, int & a_PosY, int & a_PosZ) -{ - a_PosX = m_BlockX; - a_PosY = m_BlockY; - a_PosZ = m_BlockZ; -} - - - - - void cAnvilWindow::DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) { cSlotAreas AreasInOrder; -- cgit v1.2.3