diff options
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index e7fdb522..568c1ea3 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -384,10 +384,10 @@ Viewport::mousePressed(gcn::MouseEvent &event) FloorItem *item; // Interact with some being -// if ((being = beingManager->findBeing(tilex, tiley)) - int x = (int)((float) event.getX() + mPixelViewX); - int y = (int)((float) event.getY() + mPixelViewY); - if ((being = beingManager->findBeingByPixel(x, y))) +// int x = (int)((float) event.getX() + mPixelViewX); +// int y = (int)((float) event.getY() + mPixelViewY); +// if ((being = beingManager->findBeingByPixel(x, y))) + if ((being = beingManager->findBeing(tilex, tiley))) { switch (being->getType()) { |