From: Wolfgang Becker Date: Tue, 1 Aug 2006 21:45:40 +0000 (+0000) Subject: Hope this takes care of the problems with scripted objects caused by r4076. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=caf1fac28250de0cf57c703b6359e0a69730f2bf;p=supertux.git Hope this takes care of the problems with scripted objects caused by r4076. SVN-Revision: 4110 --- 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