diff options
author | Ira Rice <irarice@gmail.com> | 2008-10-01 18:04:15 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-10-01 18:04:15 +0000 |
commit | ad4b0d0b8e32e61798ade9c256f850e8f96575f3 (patch) | |
tree | 3a6a97681d3cd91fbfb5047db5256a1c28373546 /src/map.cpp | |
parent | 9dd496ef1a395cada1f7fec08d4785728b2602d2 (diff) | |
download | mana-ad4b0d0b8e32e61798ade9c256f850e8f96575f3.tar.gz mana-ad4b0d0b8e32e61798ade9c256f850e8f96575f3.tar.bz2 mana-ad4b0d0b8e32e61798ade9c256f850e8f96575f3.tar.xz mana-ad4b0d0b8e32e61798ade9c256f850e8f96575f3.zip |
Possible fix for the arrow crashing bug. Confirmation needed.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/map.cpp b/src/map.cpp index ef622ad0..3adc3498 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -24,7 +24,6 @@ #include "map.h" #include <queue> -#include <cassert> #include "beingmanager.h" #include "configuration.h" @@ -223,9 +222,9 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) for (; layeri != mLayers.end(); ++layeri) { (*layeri)->draw(graphics, - startX, startY, endX, endY, - scrollX, scrollY, - mSprites); + startX, startY, endX, endY, + scrollX, scrollY, + mSprites); } drawOverlay(graphics, scrollX, scrollY, @@ -339,8 +338,6 @@ void Map::removeSprite(SpriteIterator iterator) mSprites.erase(iterator); } -static int const basicCost = 100; - Path Map::findPath(int startX, int startY, int destX, int destY) { // Path to be built up (empty by default) |