Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10523 in orxonox.OLD for trunk/src/world_entities/mount_point.cc


Ignore:
Timestamp:
Jan 30, 2007, 11:14:26 PM (17 years ago)
Author:
patrick
Message:

tried fixing the segfault on tardis, emitter mount point attach

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/mount_point.cc

    r10513 r10523  
    2222
    2323#include "weapons/weapon_slot.h"
     24
     25#include "particles/particle_system.h"
    2426
    2527#include "mount_point.h"
     
    140142    PRINTF(0)("Got detail informations\n");
    141143    this->_mount->loadParams( root);
     144
     145    if( this->_mount->isA(ParticleSystem::staticClassID()))
     146    {
     147      PRINTF(0)("got particle system. attaching it to mp\n");
     148      dynamic_cast<ParticleSystem*>(this->_mount)->attachEmmittersTo(this, Vector(0,0,0));
     149    }
    142150  }
    143151}
Note: See TracChangeset for help on using the changeset viewer.