Changeset 4385 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 29, 2005, 10:19:43 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/particles/particle_system.cc
r4378 r4385 242 242 { 243 243 // applying force to the System. 244 tickPart->velocity += tickPart->extForce * tickPart->mass; 244 if (likely (tickPart->mass > 0.0)) 245 tickPart->velocity += tickPart->extForce / tickPart->mass; 245 246 246 247 // rendering new position. … … 271 272 tickPart->velocity = tickPart->velocity * this->conserve; 272 273 // find out if we have to delete tickPart 273 if ( (tickPart->lifeCycle += dt/tickPart->lifeTime) >= 1.0)274 if (unlikely((tickPart->lifeCycle += dt/tickPart->lifeTime) >= 1.0)) 274 275 { 275 276 // remove the particle from the list -
orxonox/trunk/src/subprojects/particles/particle_fun.cc
r4383 r4385 411 411 // Window::mainWindow->connectSignal("remove", this, GuiExec::quitGui); 412 412 Window::mainWindow->connectSignal("destroy", NULL, quitGui); 413 windowBox->fill(quitButton); 413 414 414 windowBox->fill(quitButton);415 415 } 416 416 guiMainWindow->fill(windowBox);
Note: See TracChangeset
for help on using the changeset viewer.