[colobot] 87/100: Fix scoreboard points sometimes being added multiple times
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 5d4dfd8cb56066bd170e39adaff6e995a1646806
Author: krzys-h <krzys_h at interia.pl>
Date: Tue May 23 22:25:01 2017 +0200
Fix scoreboard points sometimes being added multiple times
---
src/object/old_object.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/object/old_object.cpp b/src/object/old_object.cpp
index 9655ad7..2178d32 100644
--- a/src/object/old_object.cpp
+++ b/src/object/old_object.cpp
@@ -530,6 +530,7 @@ void COldObject::DestroyObject(DestructionType type, CObject* killer)
pyroType = Gfx::PT_WPCHECK;
}
assert(pyroType != Gfx::PT_NULL);
+ 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