summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 7c45050b..6d332d48 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -19,11 +19,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "map.h"
+
#include "beingmanager.h"
+#include "client.h"
#include "configuration.h"
-#include "game.h"
#include "graphics.h"
-#include "map.h"
#include "particle.h"
#include "simpleanimation.h"
#include "sprite.h"
@@ -38,8 +39,6 @@
#include <queue>
-extern volatile int tick_time;
-
/**
* A location on a tile map. Used for pathfinding, open list.
*/
@@ -291,14 +290,13 @@ bool spriteCompare(const Sprite *a, const Sprite *b)
void Map::update(int ticks)
{
- //update animated tiles
+ // Update animated tiles
for (std::map<int, TileAnimation*>::iterator iAni = mTileAnimations.begin();
iAni != mTileAnimations.end();
iAni++)
{
iAni->second->update(ticks);
}
-
}
void Map::draw(Graphics *graphics, int scrollX, int scrollY)