summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-06 16:29:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-06 16:29:31 +0300
commit5b0c6c5c95645813f96ea413b1c14f2ffc18a481 (patch)
tree15f9a59ac6c585a2391ab5713f8ce2261a105928 /src/gui/viewport.cpp
parent7fa78a35307227453ab55c7452e348a40cd41d65 (diff)
downloadmanaplus-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.tar.gz
manaplus-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.tar.bz2
manaplus-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.tar.xz
manaplus-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.zip
Add strong typed bool type AllPlayers.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index fd9166c33..5bee2f8ff 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -379,7 +379,7 @@ bool Viewport::openContextMenu(const MouseEvent &event)
std::vector<ActorSprite*> beings;
const int x = mMouseX + mPixelViewX;
const int y = mMouseY + mPixelViewY;
- actorManager->findBeingsByPixel(beings, x, y, true);
+ actorManager->findBeingsByPixel(beings, x, y, AllPlayers_true);
if (beings.size() > 1)
popupMenu->showPopup(eventX, eventY, beings);
else
@@ -771,7 +771,7 @@ void Viewport::mouseMoved(MouseEvent &event)
const int y = mMouseY + mPixelViewY;
ActorType::Type type = ActorType::Unknown;
- mHoverBeing = actorManager->findBeingByPixel(x, y, true);
+ mHoverBeing = actorManager->findBeingByPixel(x, y, AllPlayers_true);
if (mHoverBeing)
type = mHoverBeing->getType();
if (mHoverBeing