- Timestamp:
- Aug 11, 2005, 4:58:59 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/sound/sound_engine.cc
r4961 r4984 137 137 void SoundSource::play(const SoundBuffer* buffer) 138 138 { 139 alSourceStop(this->sourceID); 139 140 alSourcei (this->sourceID, AL_BUFFER, buffer->getID()); 140 141 alSourcePlay(this->sourceID); -
orxonox/trunk/src/world_entities/npc.cc
r4982 r4984 21 21 #include "npc.h" 22 22 23 #include "state.h" 24 25 23 26 using namespace std; 24 27 … … 42 45 } 43 46 47 void NPC::tick(float dt) 48 { 49 this->shiftCoor((State::getCameraTarget()->getAbsCoor() - this->getAbsCoor()) *dt *10); 50 51 } 52 44 53 45 54 void NPC::die() -
orxonox/trunk/src/world_entities/npc.h
r4977 r4984 16 16 void addAI(AI* ai); 17 17 18 void tick(float dt); 18 19 int hit(); 19 20 void die();
Note: See TracChangeset
for help on using the changeset viewer.