summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-29 17:24:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-29 17:59:57 +0300
commitf315432679f760b71505e74dcb2185b7aef7a906 (patch)
tree07d45620464a2542cb28fbe773f652501e6ee6fb /src/map.cpp
parentcccb3e11663eb415b9b6c9a184e1c17762a2d989 (diff)
downloadmanaverse-f315432679f760b71505e74dcb2185b7aef7a906.tar.gz
manaverse-f315432679f760b71505e74dcb2185b7aef7a906.tar.bz2
manaverse-f315432679f760b71505e74dcb2185b7aef7a906.tar.xz
manaverse-f315432679f760b71505e74dcb2185b7aef7a906.zip
change smaller letter literalt into capital letter.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 2154cf66c..69a59b0b1 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -141,8 +141,8 @@ Map::Map(const int width, const int height,
mOnOpenList(2),
mBackgrounds(),
mForegrounds(),
- mLastAScrollX(0.0f),
- mLastAScrollY(0.0f),
+ mLastAScrollX(0.0F),
+ mLastAScrollY(0.0F),
mParticleEffects(),
mMapPortals(),
mTileAnimations(),
@@ -189,7 +189,7 @@ Map::Map(const int width, const int height,
config.addListener("guialpha", this);
config.addListener("beingopacity", this);
- if (mOpacity != 1.0f)
+ if (mOpacity != 1.0F)
mBeingOpacity = config.getBoolValue("beingopacity");
else
mBeingOpacity = false;
@@ -240,14 +240,14 @@ void Map::optionChanged(const std::string &value)
else if (value == "guialpha")
{
mOpacity = config.getFloatValue("guialpha");
- if (mOpacity != 1.0f)
+ if (mOpacity != 1.0F)
mBeingOpacity = config.getBoolValue("beingopacity");
else
mBeingOpacity = false;
}
else if (value == "beingopacity")
{
- if (mOpacity != 1.0f)
+ if (mOpacity != 1.0F)
mBeingOpacity = config.getBoolValue("beingopacity");
else
mBeingOpacity = false;
@@ -474,7 +474,7 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY)
}
// Don't draw if gui opacity == 1
- if (mBeingOpacity && mOpacity != 1.0f)
+ if (mBeingOpacity && mOpacity != 1.0F)
{
// Draws beings with a lower opacity to make them visible
// even when covered by a wall or some other elements...
@@ -497,9 +497,9 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY)
// For now, just draw actors with only one layer.
if (actor->getNumberOfLayers() == 1)
{
- actor->setAlpha(0.3f);
+ actor->setAlpha(0.3F);
actor->draw(graphics, -scrollX, -scrollY);
- actor->setAlpha(1.0f);
+ actor->setAlpha(1.0F);
}
}
++ai;
@@ -585,7 +585,7 @@ void Map::updateAmbientLayers(const float scrollX, const float scrollY)
BLOCK_START("Map::updateAmbientLayers")
static int lastTick = tick_time;
- if (mLastAScrollX == 0.0f && mLastAScrollY == 0.0f)
+ if (mLastAScrollX == 0.0F && mLastAScrollY == 0.0F)
{
// First call - initialisation
mLastAScrollX = scrollX;