From f24ddad3fa0f843eb29a281426151cf1a5f31f4b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Sep 2012 23:47:11 +0300 Subject: add const to more classes, fix other small style issues. --- src/map.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index 88396b4aa..16f284e95 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1081,7 +1081,6 @@ void Map::initializeParticleEffects(Particle *const engine) if (!engine) return; - Particle *p; if (config.getBoolValue("particleeffects")) { @@ -1089,7 +1088,7 @@ void Map::initializeParticleEffects(Particle *const engine) i = particleEffects.begin(); i != particleEffects.end(); ++i) { - p = engine->addEffect(i->file, i->x, i->y); + Particle *const p = engine->addEffect(i->file, i->x, i->y); if (p && i->w > 0 && i->h > 0) p->adjustEmitterSize(i->w, i->h); } @@ -1322,7 +1321,7 @@ void Map::setPvpMode(const int mode) } std::string Map::getObjectData(const unsigned x, const unsigned y, - const int type) + const int type) const { if (!mObjects) return ""; -- cgit v1.2.3-60-g2f50