From: Wolfgang Becker Date: Fri, 11 Aug 2006 23:15:59 +0000 (+0000) Subject: solid scripted_objects now in COLGROUP_MOVING_STATIC X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=25d0ee980593ed8452ce3eb265e71b4db825bedb;p=supertux.git solid scripted_objects now in COLGROUP_MOVING_STATIC SVN-Revision: 4166 --- diff --git a/src/object/scripted_object.cpp b/src/object/scripted_object.cpp index 65dffb49e..b3c1158b1 100644 --- a/src/object/scripted_object.cpp +++ b/src/object/scripted_object.cpp @@ -29,7 +29,7 @@ #include "math/vector.hpp" ScriptedObject::ScriptedObject(const lisp::Lisp& lisp) - : MovingSprite(lisp, LAYER_OBJECTS, COLGROUP_MOVING), + : MovingSprite(lisp, LAYER_OBJECTS, COLGROUP_MOVING_STATIC), solid(true), physic_enabled(true), visible(true), new_vel_set(false) { lisp.get("name", name); @@ -48,11 +48,7 @@ ScriptedObject::ScriptedObject(const lisp::Lisp& lisp) lisp.get("visible", visible); lisp.get("z-pos", layer); if( solid ){ - if( physic_enabled ){ - set_group( COLGROUP_MOVING ); - } else { - set_group( COLGROUP_STATIC ); - } + set_group( COLGROUP_MOVING_STATIC ); } else { set_group( COLGROUP_DISABLED ); } @@ -134,11 +130,7 @@ ScriptedObject::set_solid(bool solid) { this->solid = solid; if( solid ){ - if( physic_enabled ){ - set_group( COLGROUP_MOVING ); - } else { - set_group( COLGROUP_STATIC ); - } + set_group( COLGROUP_MOVING_STATIC ); } else { set_group( COLGROUP_DISABLED ); }