summaryrefslogtreecommitdiff
path: root/src/gui/windows/equipmentwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r--src/gui/windows/equipmentwindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp
index 53097802a..4bd285b8f 100644
--- a/src/gui/windows/equipmentwindow.cpp
+++ b/src/gui/windows/equipmentwindow.cpp
@@ -359,8 +359,8 @@ void EquipmentWindow::action(const ActionEvent &event)
else if (eventId == "playerbox")
{
const DragDropSource src = dragDrop.getSource();
- if (dragDrop.isEmpty() || (src != DRAGDROP_SOURCE_INVENTORY
- && src != DRAGDROP_SOURCE_EQUIPMENT))
+ if (dragDrop.isEmpty() || (src != DragDropSource::Inventory
+ && src != DragDropSource::Equipment))
{
return;
}
@@ -373,7 +373,7 @@ void EquipmentWindow::action(const ActionEvent &event)
if (!item)
return;
- if (dragDrop.getSource() == DRAGDROP_SOURCE_INVENTORY)
+ if (dragDrop.getSource() == DragDropSource::Inventory)
{
if (item->isEquipment() == Equipm_true)
{
@@ -459,7 +459,7 @@ void EquipmentWindow::mousePressed(MouseEvent& event)
{
event.consume();
setSelected(i);
- dragDrop.dragItem(item, DRAGDROP_SOURCE_EQUIPMENT);
+ dragDrop.dragItem(item, DragDropSource::Equipment);
return;
}
}
@@ -502,8 +502,8 @@ void EquipmentWindow::mouseReleased(MouseEvent &event)
{
Window::mouseReleased(event);
const DragDropSource src = dragDrop.getSource();
- if (dragDrop.isEmpty() || (src != DRAGDROP_SOURCE_INVENTORY
- && src != DRAGDROP_SOURCE_EQUIPMENT))
+ if (dragDrop.isEmpty() || (src != DragDropSource::Inventory
+ && src != DragDropSource::Equipment))
{
return;
}
@@ -517,7 +517,7 @@ void EquipmentWindow::mouseReleased(MouseEvent &event)
if (!item)
return;
- if (dragDrop.getSource() == DRAGDROP_SOURCE_INVENTORY)
+ if (dragDrop.getSource() == DragDropSource::Inventory)
{
if (item->isEquipment() == Equipm_true)
{
@@ -525,7 +525,7 @@ void EquipmentWindow::mouseReleased(MouseEvent &event)
PlayerInfo::equipItem(item, Sfx_true);
}
}
- else if (dragDrop.getSource() == DRAGDROP_SOURCE_EQUIPMENT)
+ else if (dragDrop.getSource() == DragDropSource::Equipment)
{
if (item->isEquipment() == Equipm_true)
{