Implemented left-click inventory painting
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1529 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -325,6 +325,36 @@ void cPlayer::SendHealth()
|
||||
|
||||
|
||||
|
||||
void cPlayer::ClearInventoryPaintSlots(void)
|
||||
{
|
||||
// Clear the list of slots that are being inventory-painted. Used by cWindow only
|
||||
m_InventoryPaintSlots.clear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cPlayer::AddInventoryPaintSlot(int a_SlotNum)
|
||||
{
|
||||
// Add a slot to the list for inventory painting. Used by cWindow only
|
||||
m_InventoryPaintSlots.push_back(a_SlotNum);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const cSlotNums & cPlayer::GetInventoryPaintSlots(void) const
|
||||
{
|
||||
// Return the list of slots currently stored for inventory painting. Used by cWindow only
|
||||
return m_InventoryPaintSlots;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI)
|
||||
{
|
||||
if (m_GameMode == eGameMode_Creative)
|
||||
|
||||
Reference in New Issue
Block a user