Changeset 1491 for code/branches/network/src/orxonox
- Timestamp:
- May 31, 2008, 11:48:01 AM (17 years ago)
- Location:
- code/branches/network/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/Orxonox.cc
r1466 r1491 186 186 else if (mode == "server") 187 187 mode_ = SERVER; 188 else if (mode == "dedicated") 189 mode_= DEDICATED; 188 190 else 189 191 { … … 215 217 bool Orxonox::start() 216 218 { 217 //if (mode == DEDICATED)219 //if (mode_ == DEDICATED) 218 220 // do something else 219 221 //else … … 433 435 // don't forget to call _fireFrameStarted in ogre to make sure 434 436 // everything goes smoothly 435 ogreRoot._fireFrameStarted(evt); 437 if(mode_!=DEDICATED) 438 ogreRoot._fireFrameStarted(evt); 436 439 437 440 // get current time … … 439 442 calculateEventTime(now, eventTimes[2]); 440 443 441 ogreRoot._updateAllRenderTargets(); // only render in non-server mode 444 if(mode_!=DEDICATED) 445 ogreRoot._updateAllRenderTargets(); // only render in non-server mode 442 446 443 447 // get current time … … 449 453 450 454 // again, just to be sure ogre works fine 451 ogreRoot._fireFrameEnded(evt); 455 if(mode_!=DEDICATED) 456 ogreRoot._fireFrameEnded(evt); 452 457 } 453 458 -
code/branches/network/src/orxonox/Orxonox.h
r1446 r1491 50 50 SERVER, 51 51 CLIENT, 52 STANDALONE 52 STANDALONE, 53 DEDICATED 53 54 }; 54 55
Note: See TracChangeset
for help on using the changeset viewer.