diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-20 00:34:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-20 00:34:20 +0300 |
commit | 899d3b925ccb249de881bbc957f6e4ddc754cbbd (patch) | |
tree | 4c35a6f21d909f9bc07ed091f0c8e3cb5f700105 /src/particle/particle.cpp | |
parent | 1049de4c76ac6fc85c9f7f2bd35fb62ca787aa4c (diff) | |
download | manaverse-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.gz manaverse-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.bz2 manaverse-899d3b925ccb249de881bbc957f6e4ddc754cbbd.tar.xz manaverse-899d3b925ccb249de881bbc957f6e4ddc754cbbd.zip |
Add function for read float and double number from xml.
Diffstat (limited to 'src/particle/particle.cpp')
-rw-r--r-- | src/particle/particle.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/particle/particle.cpp b/src/particle/particle.cpp index dd5b86913..3019aeda0 100644 --- a/src/particle/particle.cpp +++ b/src/particle/particle.cpp @@ -475,12 +475,12 @@ Particle *Particle::addEffect(const std::string &restrict particleEffectFile, } // Read and set the basic properties of the particle - const float offsetX = static_cast<float>(XML::getFloatProperty( - effectChildNode, "position-x", 0)); - const float offsetY = static_cast<float>(XML::getFloatProperty( - effectChildNode, "position-y", 0)); - const float offsetZ = static_cast<float>(XML::getFloatProperty( - effectChildNode, "position-z", 0)); + const float offsetX = XML::getFloatProperty( + effectChildNode, "position-x", 0); + const float offsetY = XML::getFloatProperty( + effectChildNode, "position-y", 0); + const float offsetZ = XML::getFloatProperty( + effectChildNode, "position-z", 0); const Vector position(mPos.x + static_cast<float>(pixelX) + offsetX, mPos.y + static_cast<float>(pixelY) + offsetY, mPos.z + offsetZ); |