diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-29 17:24:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-29 17:59:57 +0300 |
commit | f315432679f760b71505e74dcb2185b7aef7a906 (patch) | |
tree | 07d45620464a2542cb28fbe773f652501e6ee6fb /src/being | |
parent | cccb3e11663eb415b9b6c9a184e1c17762a2d989 (diff) | |
download | plus-f315432679f760b71505e74dcb2185b7aef7a906.tar.gz plus-f315432679f760b71505e74dcb2185b7aef7a906.tar.bz2 plus-f315432679f760b71505e74dcb2185b7aef7a906.tar.xz plus-f315432679f760b71505e74dcb2185b7aef7a906.zip |
change smaller letter literalt into capital letter.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 6 | ||||
-rw-r--r-- | src/being/being.h | 2 | ||||
-rw-r--r-- | src/being/compoundsprite.cpp | 4 | ||||
-rw-r--r-- | src/being/localplayer.cpp | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index b9d720671..949a691c1 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -1004,7 +1004,7 @@ void Being::fireMissile(Being *const victim, const std::string &particle) const if (missile) { - target->moveBy(Vector(0.0f, 0.0f, 32.0f)); + target->moveBy(Vector(0.0F, 0.0F, 32.0F)); target->setLifetime(1000); victim->controlParticle(target); @@ -1415,7 +1415,7 @@ void Being::logic() const float nominalLength = dir.length(); // When we've not reached our destination, move to it. - if (nominalLength > 0.0f && !mWalkSpeed.isNull()) + if (nominalLength > 0.0F && !mWalkSpeed.isNull()) { // The deplacement of a point along a vector is calculated // using the Unit Vector (รข) multiplied by the point speed. @@ -1446,7 +1446,7 @@ void Being::logic() // Update the player sprite direction. // N.B.: We only change this if the distance is more than one pixel. - if (nominalLength > 1.0f) + if (nominalLength > 1.0F) { int direction = 0; const float dx = std::abs(dir.x); diff --git a/src/being/being.h b/src/being/being.h index ddc083c34..04e32ae61 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -539,7 +539,7 @@ class Being : public ActorSprite, public ConfigListener * @see setPosition(const Vector &pos) */ inline void setPosition(const float x, const float y, - const float z = 0.0f) + const float z = 0.0F) { setPosition(Vector(x, y, z)); } /** diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp index 9bf691d9a..261532be8 100644 --- a/src/being/compoundsprite.cpp +++ b/src/being/compoundsprite.cpp @@ -63,7 +63,7 @@ CompoundSprite::CompoundSprite() : mDisableAdvBeingCaching(config.getBoolValue("disableAdvBeingCaching")), mDisableBeingCaching(config.getBoolValue("disableBeingCaching")) { - mAlpha = 1.0f; + mAlpha = 1.0F; } CompoundSprite::~CompoundSprite() @@ -119,7 +119,7 @@ bool CompoundSprite::draw(Graphics *const graphics, if (mSprites.empty()) // Nothing to draw return false; - if (mAlpha == 1.0f && mImage) + if (mAlpha == 1.0F && mImage) { return graphics->drawImage(mImage, posX + mOffsetX, posY + mOffsetY); } diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index f1c4c49e2..f8a13f8a0 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -138,7 +138,7 @@ LocalPlayer::LocalPlayer(const int id, const int subtype) : mTestParticle(nullptr), mTestParticleName(), mTestParticleTime(0), - mTestParticleHash(0l), + mTestParticleHash(0L), mWalkingDir(0), mUpdateName(true), mBlockAdvert(false), |