Changeset 9429 in orxonox.OLD
- Timestamp:
- Jul 24, 2006, 3:05:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/story_entities/game_world.cc
r9406 r9429 414 414 double currentFrame = Timer::getNow(); 415 415 416 if (currentFrame - this->lastFrame < .01) 417 { 418 SDL_Delay(1000.0 * (0.01 - (currentFrame - lastFrame))); 419 currentFrame = Timer::getNow(); 420 } 421 422 416 423 frameTimesIndex = this->cycle % TICK_SMOOTH_VALUE; 417 424 this->frameTimes[frameTimesIndex] = currentFrame - this->lastFrame; … … 469 476 this->dataTank->objectManager->getObjectList(OM_GROUP_00_PROJ)); 470 477 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01), 471 this->dataTank->objectManager->getObjectList(OM_GROUP_00));478 this->dataTank->objectManager->getObjectList(OM_GROUP_00)); 472 479 473 480 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01), 474 this->dataTank->objectManager->getObjectList(OM_GROUP_02));481 this->dataTank->objectManager->getObjectList(OM_GROUP_02)); 475 482 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_02), 476 this->dataTank->objectManager->getObjectList(OM_GROUP_01_PROJ));483 this->dataTank->objectManager->getObjectList(OM_GROUP_01_PROJ)); 477 484 478 485 … … 513 520 { 514 521 515 522 // if this server is a dedicated server the game workd does not need to be drawn 516 523 if( !GraphicsEngine::getInstance()->isDedicated()) 517 524 { 518 // render the reflection texture519 this->renderPassReflection();520 // redner the refraction texture521 this->renderPassRefraction();525 // render the reflection texture 526 this->renderPassReflection(); 527 // redner the refraction texture 528 this->renderPassRefraction(); 522 529 } 523 530 // render all
Note: See TracChangeset
for help on using the changeset viewer.