From f315432679f760b71505e74dcb2185b7aef7a906 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Sep 2013 17:24:52 +0300 Subject: change smaller letter literalt into capital letter. --- src/being/being.cpp | 6 +++--- src/being/being.h | 2 +- src/being/compoundsprite.cpp | 4 ++-- src/being/localplayer.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/being') 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), -- cgit v1.2.3-70-g09d2