Changeset 9494 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Jul 27, 2006, 10:44:28 AM (18 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r9406 r9494 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 -
trunk/src/story_entities/multi_player_world_data.cc
r9406 r9494 112 112 const TiXmlElement* element = NULL; 113 113 114 if( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServer())114 if( SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/) 115 115 { 116 116 /* load the spawning points */ … … 148 148 element = element->FirstChildElement(); 149 149 150 if( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServer())150 if( SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/) 151 151 { 152 152 while( element != NULL) … … 206 206 207 207 208 if( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServer())208 if( SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/) 209 209 { 210 210 this->localPlayer = new Player(); … … 284 284 285 285 // create server playable 286 if ( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServer())286 if ( SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/) 287 287 { 288 288 NetworkGameManager::getInstance()->signalNewPlayer( 0 );
Note: See TracChangeset
for help on using the changeset viewer.