[colobot] 88/100: Fix alien animations after 5d4dfd8cb56066bd170e39adaff6e995a1646806

Didier Raboud odyx at moszumanska.debian.org
Thu Jun 1 18:10:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 935b789d020b9f646a2d0a11b95b04dca72d97e9
Author: krzys-h <krzys_h at interia.pl>
Date:   Wed May 24 10:45:31 2017 +0200

    Fix alien animations after 5d4dfd8cb56066bd170e39adaff6e995a1646806
---
 src/object/old_object.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/object/old_object.cpp b/src/object/old_object.cpp
index 2178d32..dbe92b3 100644
--- a/src/object/old_object.cpp
+++ b/src/object/old_object.cpp
@@ -530,7 +530,12 @@ void COldObject::DestroyObject(DestructionType type, CObject* killer)
         pyroType = Gfx::PT_WPCHECK;
     }
     assert(pyroType != Gfx::PT_NULL);
-    SetDying(DeathType::Exploding);
+    if (pyroType == Gfx::PT_FRAGT ||
+        pyroType == Gfx::PT_FRAGO ||
+        pyroType == Gfx::PT_FRAGW)
+    {
+        SetDying(DeathType::Exploding);
+    }
     m_engine->GetPyroManager()->Create(pyroType, this);
 
     if ( Implements(ObjectInterfaceType::Programmable) )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list