[colobot] 89/100: Prevent enforcement of ObligatoryToken for level controller scripts
Didier Raboud
odyx at moszumanska.debian.org
Thu Jun 1 18:10:24 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 f60108f367cd6f44b3565d23ac6aa7feaddf1400
Author: krzys-h <krzys_h at interia.pl>
Date: Wed May 24 10:50:43 2017 +0200
Prevent enforcement of ObligatoryToken for level controller scripts
---
src/level/robotmain.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp
index 4bcec60..7f4181f 100644
--- a/src/level/robotmain.cpp
+++ b/src/level/robotmain.cpp
@@ -3322,6 +3322,9 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject)
assert(m_controller->Implements(ObjectInterfaceType::Programmable));
assert(m_controller->Implements(ObjectInterfaceType::ProgramStorage));
+ assert(m_controller->Implements(ObjectInterfaceType::Old));
+ dynamic_cast<COldObject*>(m_controller)->SetCheckToken(false);
+
if (line->GetParam("script")->IsDefined())
{
CProgramStorageObject* programStorage = dynamic_cast<CProgramStorageObject*>(m_controller);
--
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