Changeset 10519 in orxonox.OLD for trunk/src/world_entities/npcs
- Timestamp:
- Jan 30, 2007, 9:51:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/mover.cc
r10487 r10519 20 20 21 21 #include "mover.h" 22 #include "state.h" 23 #include "camera.h" 22 24 23 25 … … 31 33 { 32 34 this->registerObject(this, Mover::_objectList); 33 this->toList(OM_ COMMON);35 this->toList(OM_ENVIRON); 34 36 35 37 this->targetCoordinates = Vector(0, 0, 0); … … 224 226 if (distance < this->actionRadius) 225 227 { 226 this->soundSource_starting.setSourceNode( entity); // bad hack!227 this->soundSource_moving.setSourceNode( entity); // TODO: make the sound louder without228 this->soundSource_ending.setSourceNode( entity); // attaching him to the player228 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 229 231 return true; 230 232 }
Note: See TracChangeset
for help on using the changeset viewer.