Changeset 7225 in orxonox.OLD for trunk/src/lib/particles/engine
- Timestamp:
- Mar 18, 2006, 12:04:39 PM (19 years ago)
- Location:
- trunk/src/lib/particles/engine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/engine/particle_engine.cc
r7193 r7225 122 122 * @param system the System to connect to the Emitter 123 123 */ 124 void ParticleEngine::addConnection(const char* emitter, const char*system)124 void ParticleEngine::addConnection(const std::string& emitter, const std::string& system) 125 125 { 126 126 ParticleEmitter* tmpEmit = dynamic_cast<ParticleEmitter*>(ClassList::getObject(emitter, CL_PARTICLE_EMITTER));//this->getEmitterByName(emitter); … … 132 132 { 133 133 if (tmpEmit == NULL) 134 PRINTF(2)("Emitter %s not found in the List of emitters, not connecting to %s\n", emitter , system);134 PRINTF(2)("Emitter %s not found in the List of emitters, not connecting to %s\n", emitter.c_str(), system.c_str()); 135 135 if (tmpEmit == NULL) 136 PRINTF(2)("System %s not found in the List of emitters, not connecting to %s\n", system , emitter);136 PRINTF(2)("System %s not found in the List of emitters, not connecting to %s\n", system.c_str(), emitter.c_str()); 137 137 } 138 138 } -
trunk/src/lib/particles/engine/particle_engine.h
r7130 r7225 45 45 void addEmitter(ParticleEmitter* emitter); 46 46 void addConnection(ParticleEmitter* emitter, ParticleSystem* system); 47 void addConnection(const char* emitter, const char*system);47 void addConnection(const std::string& emitter, const std::string& system); 48 48 49 49
Note: See TracChangeset
for help on using the changeset viewer.