diff options
author | MrSimbax <simbaxlp@gmail.com> | 2014-11-02 12:42:57 +0100 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2014-11-02 13:34:59 +0100 |
commit | 3ffc08a7f947d4ac36c054527f1d73e6226b2538 (patch) | |
tree | 200ac6fdcaae12c32566ab759ddc5f6860758de4 /src/graphics | |
parent | ccdbce8cd7d9eac893637608b01da4c1fff3cfb9 (diff) | |
download | colobot-3ffc08a7f947d4ac36c054527f1d73e6226b2538.tar.gz colobot-3ffc08a7f947d4ac36c054527f1d73e6226b2538.tar.bz2 colobot-3ffc08a7f947d4ac36c054527f1d73e6226b2538.zip |
Fixed amount of fireball damage done to allies, close issue #356
In the original game the whole series did damage 0.02 (0.10 * 0.2) to human. In Gold, one particle do such damage, so 51 particles do 51 * 0.02 = 1.02 damage to human! I changed the multiplier for allies from 0.2 to 0.004 (approx. 0.2 / 51), but this problem probably occured somewhere else during rewriting the engine from DirectX to OpenGL and SDL.
Diffstat (limited to 'src/graphics')
-rw-r--r-- | src/graphics/engine/particle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/engine/particle.cpp b/src/graphics/engine/particle.cpp index d038322..f5a16e9 100644 --- a/src/graphics/engine/particle.cpp +++ b/src/graphics/engine/particle.cpp @@ -116,7 +116,7 @@ bool IsAlien(ObjectType type) //! Returns the damping factor for friendly fire float GetDecay(ObjectType type) { - if (IsSoft(type)) return 0.2f; + if (IsSoft(type)) return 0.004f; return 1.0f; } |