diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-10-18 22:33:55 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-10-18 22:33:55 +0200 |
commit | 2874bf73be010462d060553c1d9a358566a5c56a (patch) | |
tree | a56bf2277606e0a55932cc0b40b9516e366278bd /src/UI/Window.cpp | |
parent | InfoDump: Fixed trailing whitespace. (diff) | |
parent | Fixed failure for cRankManager to restart (diff) | |
download | cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.gz cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.bz2 cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.lz cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.xz cuberite-2874bf73be010462d060553c1d9a358566a5c56a.tar.zst cuberite-2874bf73be010462d060553c1d9a358566a5c56a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/UI/Window.cpp | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/UI/Window.cpp b/src/UI/Window.cpp index d83336f75..802d0d219 100644 --- a/src/UI/Window.cpp +++ b/src/UI/Window.cpp @@ -758,20 +758,7 @@ void cWindow::BroadcastWholeWindow(void) -void cWindow::BroadcastProgress(int a_Progressbar, int a_Value) -{ - cCSLock Lock(m_CS); - for (cPlayerList::iterator itr = m_OpenedBy.begin(); itr != m_OpenedBy.end(); ++itr) - { - (*itr)->GetClientHandle()->SendWindowProperty(*this, a_Progressbar, a_Value); - } // for itr - m_OpenedBy[] -} - - - - - -void cWindow::SetProperty(int a_Property, int a_Value) +void cWindow::SetProperty(short a_Property, short a_Value) { cCSLock Lock(m_CS); for (cPlayerList::iterator itr = m_OpenedBy.begin(), end = m_OpenedBy.end(); itr != end; ++itr) @@ -784,7 +771,7 @@ void cWindow::SetProperty(int a_Property, int a_Value) -void cWindow::SetProperty(int a_Property, int a_Value, cPlayer & a_Player) +void cWindow::SetProperty(short a_Property, short a_Value, cPlayer & a_Player) { a_Player.GetClientHandle()->SendWindowProperty(*this, a_Property, a_Value); } @@ -919,7 +906,7 @@ cEnchantingWindow::cEnchantingWindow(int a_BlockX, int a_BlockY, int a_BlockZ) : -void cEnchantingWindow::SetProperty(int a_Property, int a_Value) +void cEnchantingWindow::SetProperty(short a_Property, short a_Value) { if ((a_Property < 0) || ((size_t)a_Property >= ARRAYCOUNT(m_PropertyValue))) { @@ -935,7 +922,7 @@ void cEnchantingWindow::SetProperty(int a_Property, int a_Value) -void cEnchantingWindow::SetProperty(int a_Property, int a_Value, cPlayer & a_Player) +void cEnchantingWindow::SetProperty(short a_Property, short a_Value, cPlayer & a_Player) { if ((a_Property < 0) || ((size_t)a_Property >= ARRAYCOUNT(m_PropertyValue))) { @@ -951,7 +938,7 @@ void cEnchantingWindow::SetProperty(int a_Property, int a_Value, cPlayer & a_Pla -int cEnchantingWindow::GetPropertyValue(int a_Property) +short cEnchantingWindow::GetPropertyValue(short a_Property) { if ((a_Property < 0) || ((size_t)a_Property >= ARRAYCOUNT(m_PropertyValue))) { |