[Orxonox-commit 1683] r6401 - code/branches/presentation2/src/modules/weapons/projectiles

rgrieder at orxonox.net rgrieder at orxonox.net
Tue Dec 22 22:38:34 CET 2009


Author: rgrieder
Date: 2009-12-22 22:38:34 +0100 (Tue, 22 Dec 2009)
New Revision: 6401

Modified:
   code/branches/presentation2/src/modules/weapons/projectiles/Projectile.cc
Log:
Removed useless damage_ config value from Projectile. Rather use the XML parameter in WeaponMode for now.

Modified: code/branches/presentation2/src/modules/weapons/projectiles/Projectile.cc
===================================================================
--- code/branches/presentation2/src/modules/weapons/projectiles/Projectile.cc	2009-12-22 21:05:38 UTC (rev 6400)
+++ code/branches/presentation2/src/modules/weapons/projectiles/Projectile.cc	2009-12-22 21:38:34 UTC (rev 6401)
@@ -47,6 +47,7 @@
         this->setConfigValues();
         this->bDestroy_ = false;
         this->owner_ = 0;
+        this->damage_ = 15;
 
         // Get notification about collisions
 
@@ -71,7 +72,6 @@
 
     void Projectile::setConfigValues()
     {
-        SetConfigValue(damage_, 15.0).description("The damage caused by the projectile");
         SetConfigValue(lifetime_, 4.0).description("The time in seconds a projectile stays alive");
     }
 




More information about the Orxonox-commit mailing list