From caf1fac28250de0cf57c703b6359e0a69730f2bf Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Tue, 1 Aug 2006 21:45:40 +0000 Subject: [PATCH] Hope this takes care of the problems with scripted objects caused by r4076. SVN-Revision: 4110 --- src/object/scripted_object.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/object/scripted_object.cpp b/src/object/scripted_object.cpp index e95e5b520..ee6000bbb 100644 --- a/src/object/scripted_object.cpp +++ b/src/object/scripted_object.cpp @@ -47,6 +47,11 @@ ScriptedObject::ScriptedObject(const lisp::Lisp& lisp) lisp.get("physic-enabled", physic_enabled); lisp.get("visible", visible); lisp.get("z-pos", layer); + if( solid ){ + set_group( COLGROUP_MOVING ); + } else { + set_group( COLGROUP_DISABLED ); + } } void @@ -124,6 +129,11 @@ void ScriptedObject::set_solid(bool solid) { this->solid = solid; + if( solid ){ + set_group( COLGROUP_MOVING ); + } else { + set_group( COLGROUP_DISABLED ); + } } bool -- 2.11.0