diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-07 22:00:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-07 22:00:29 +0300 |
commit | 344a88446cc1e15780de41c1187f40d18de7b60e (patch) | |
tree | 06173ee66396951b39cf6b8099898b3c7b35cf9c /src/resources/db/itemdb.cpp | |
parent | ad6c177a459cf5afb3ad88169d8ba6b1c47fff93 (diff) | |
download | plus-344a88446cc1e15780de41c1187f40d18de7b60e.tar.gz plus-344a88446cc1e15780de41c1187f40d18de7b60e.tar.bz2 plus-344a88446cc1e15780de41c1187f40d18de7b60e.tar.xz plus-344a88446cc1e15780de41c1187f40d18de7b60e.zip |
Adjust default missile particle lifetime.
Diffstat (limited to 'src/resources/db/itemdb.cpp')
-rw-r--r-- | src/resources/db/itemdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp index ded7e59f2..68cb5b3bb 100644 --- a/src/resources/db/itemdb.cpp +++ b/src/resources/db/itemdb.cpp @@ -348,7 +348,7 @@ void ItemDB::loadXmlFile(const std::string &fileName, float missileZ = static_cast<float>(XML::getFloatProperty( node, "missile-z", 32.0f)); int missileLifeTime = static_cast<float>(XML::getProperty( - node, "missile-lifetime", 3000)); + node, "missile-lifetime", 500)); float missileSpeed = static_cast<float>(XML::getFloatProperty( node, "missile-speed", 7.0f)); float missileDieDistance = static_cast<float>(XML::getFloatProperty( @@ -502,7 +502,7 @@ void ItemDB::loadXmlFile(const std::string &fileName, missileParticle = inheritMissile.particle; if (missileZ == 32.0F) missileZ = inheritMissile.z; - if (missileLifeTime == 3000) + if (missileLifeTime == 500) missileLifeTime = inheritMissile.lifeTime; if (missileSpeed == 7.0F) missileSpeed = inheritMissile.speed; |