summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-04 23:47:11 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-04 23:47:11 +0300
commitf24ddad3fa0f843eb29a281426151cf1a5f31f4b (patch)
tree6f3faaf38f069f1e88435b7c976ff4070b7a1dcb /src/map.cpp
parent3a407bb6b73a186eafd99bcec570f88097c4b2e1 (diff)
downloadmv-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.gz
mv-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.bz2
mv-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.xz
mv-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.zip
add const to more classes,
fix other small style issues.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp5
1 files changed, 2 insertions, 3 deletions
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 "";