diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-04-22 07:15:35 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-04-23 08:33:25 -0600 |
commit | c22ea2f169f58e765fc699fcd71bfd3a3cd4f859 (patch) | |
tree | 9e19b57d562d3fe24cd69e6441db41162aa6d3e4 /src/flooritemmanager.cpp | |
parent | 93d4de19fdffb6d568c907729449f169c3520c7b (diff) | |
download | mana-c22ea2f169f58e765fc699fcd71bfd3a3cd4f859.tar.gz mana-c22ea2f169f58e765fc699fcd71bfd3a3cd4f859.tar.bz2 mana-c22ea2f169f58e765fc699fcd71bfd3a3cd4f859.tar.xz mana-c22ea2f169f58e765fc699fcd71bfd3a3cd4f859.zip |
Add an Actor class to replace the Sprite class
The Actor class manages the Map reference, position vector, and alpha float.
These are the common parts from it's children.
Diffstat (limited to 'src/flooritemmanager.cpp')
-rw-r--r-- | src/flooritemmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flooritemmanager.cpp b/src/flooritemmanager.cpp index a190a168..9115b704 100644 --- a/src/flooritemmanager.cpp +++ b/src/flooritemmanager.cpp @@ -70,7 +70,7 @@ FloorItem *FloorItemManager::findByCoordinates(int x, int y) const FloorItems::const_iterator i; for (i = mFloorItems.begin(); i != mFloorItems.end(); i++) { - if ((*i)->getX() == x && (*i)->getY() == y) + if ((*i)->getTileX() == x && (*i)->getTileY() == y) { return *i; } |