Fixed indentation and doxygen comments... For real this time.
This commit is contained in:
@@ -170,7 +170,7 @@ void cWindow::Clicked(
|
||||
const cItem & a_ClickedItem
|
||||
)
|
||||
{
|
||||
cPluginManager * PlgMgr = cRoot::Get()->GetPluginManager();
|
||||
cPluginManager * PlgMgr = cRoot::Get()->GetPluginManager();
|
||||
if (a_WindowID != m_WindowID)
|
||||
{
|
||||
LOGWARNING("%s: Wrong window ID (exp %d, got %d) received from \"%s\"; ignoring click.", __FUNCTION__, m_WindowID, a_WindowID, a_Player.GetName().c_str());
|
||||
@@ -181,15 +181,15 @@ void cWindow::Clicked(
|
||||
{
|
||||
case caRightClickOutside:
|
||||
{
|
||||
if (PlgMgr->CallHookPlayerTossingItem(a_Player))
|
||||
if (PlgMgr->CallHookPlayerTossingItem(a_Player))
|
||||
{
|
||||
// A plugin doesn't agree with the tossing. The plugin itself is responsible for handling the consequences (possible inventory mismatch)
|
||||
return;
|
||||
}
|
||||
if (a_Player.IsGameModeCreative())
|
||||
{
|
||||
a_Player.TossPickup(a_ClickedItem);
|
||||
}
|
||||
if (a_Player.IsGameModeCreative())
|
||||
{
|
||||
a_Player.TossPickup(a_ClickedItem);
|
||||
}
|
||||
|
||||
// Toss one of the dragged items:
|
||||
a_Player.TossHeldItem();
|
||||
@@ -203,10 +203,10 @@ void cWindow::Clicked(
|
||||
return;
|
||||
}
|
||||
|
||||
if (a_Player.IsGameModeCreative())
|
||||
{
|
||||
a_Player.TossPickup(a_ClickedItem);
|
||||
}
|
||||
if (a_Player.IsGameModeCreative())
|
||||
{
|
||||
a_Player.TossPickup(a_ClickedItem);
|
||||
}
|
||||
|
||||
// Toss all dragged items:
|
||||
a_Player.TossHeldItem(a_Player.GetDraggingItem().m_ItemCount);
|
||||
@@ -285,8 +285,8 @@ bool cWindow::ClosedByPlayer(cPlayer & a_Player, bool a_CanRefuse)
|
||||
// Checks whether the player is still holding an item
|
||||
if (a_Player.IsDraggingItem())
|
||||
{
|
||||
LOGD("Player holds item! Dropping it...");
|
||||
a_Player.TossHeldItem(a_Player.GetDraggingItem().m_ItemCount);
|
||||
LOGD("Player holds item! Dropping it...");
|
||||
a_Player.TossHeldItem(a_Player.GetDraggingItem().m_ItemCount);
|
||||
}
|
||||
|
||||
cClientHandle * ClientHandle = a_Player.GetClientHandle();
|
||||
|
||||
Reference in New Issue
Block a user