summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-09-15 17:24:24 +0000
committerIra Rice <irarice@gmail.com>2008-09-15 17:24:24 +0000
commit176e885ef6c5ae34c8c31c693b65e5a246146f3a (patch)
treea518013432ebd4f8e70a1240fe4c6931b3c7c459 /src/gui/viewport.cpp
parent175a930a09c657525e67a1faccd1f9569ec4d28f (diff)
downloadmana-client-176e885ef6c5ae34c8c31c693b65e5a246146f3a.tar.gz
mana-client-176e885ef6c5ae34c8c31c693b65e5a246146f3a.tar.bz2
mana-client-176e885ef6c5ae34c8c31c693b65e5a246146f3a.tar.xz
mana-client-176e885ef6c5ae34c8c31c693b65e5a246146f3a.zip
Commented out getBeingByPixel because it really isn't used, nor is there
much sense to. Shouldn't make any visible changes to performance yet, but I trimmed it out for now anyways.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp8
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())
{