Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10519 in orxonox.OLD for trunk/src/world_entities/npcs/mover.cc


Ignore:
Timestamp:
Jan 30, 2007, 9:51:21 PM (17 years ago)
Author:
patrick
Message:

emitter fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/mover.cc

    r10487 r10519  
    2020
    2121#include "mover.h"
     22#include "state.h"
     23#include "camera.h"
    2224
    2325
     
    3133{
    3234    this->registerObject(this, Mover::_objectList);
    33     this->toList(OM_COMMON);
     35    this->toList(OM_ENVIRON);
    3436
    3537    this->targetCoordinates = Vector(0, 0, 0);
     
    224226        if (distance < this->actionRadius)
    225227        {
    226             this->soundSource_starting.setSourceNode(entity);   // bad hack!
    227             this->soundSource_moving.setSourceNode(entity);     // TODO: make the sound louder without
    228             this->soundSource_ending.setSourceNode(entity);     // attaching him to the player
     228            this->soundSource_starting.setSourceNode((PNode*)State::getCamera());   // bad hack!
     229            this->soundSource_moving.setSourceNode((PNode*)State::getCamera());     // TODO: make the sound louder without
     230            this->soundSource_ending.setSourceNode((PNode*)State::getCamera());     // attaching him to the player
    229231            return true;
    230232        }
Note: See TracChangeset for help on using the changeset viewer.