mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
fix local mode option
This commit is contained in:
parent
023892a4d0
commit
3f4245d597
1 changed files with 4 additions and 5 deletions
|
@ -142,16 +142,17 @@ void VoxelServer::run() {
|
|||
|
||||
NodeList* nodeList = NodeList::createInstance(NODE_TYPE_VOXEL_SERVER, listenPort);
|
||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||
|
||||
|
||||
// tell our NodeList about our desire to get notifications
|
||||
nodeList->addHook(&nodeWatcher);
|
||||
nodeList->linkedDataCreateCallback = &attachVoxelNodeDataToNode;
|
||||
|
||||
// Handle Local Domain testing with the --local command line
|
||||
const char* local = "--local";
|
||||
::wantLocalDomain = getCmdOption(_argc, _argv,local);
|
||||
::wantLocalDomain = cmdOptionExists(_argc, _argv, local);
|
||||
if (::wantLocalDomain) {
|
||||
printf("Local Domain MODE!\n");
|
||||
nodeList->setDomainIPToLocalhost();
|
||||
NodeList::getInstance()->setDomainIPToLocalhost();
|
||||
} else {
|
||||
const char* domainIP = getCmdOption(_argc, _argv, "--domain");
|
||||
if (domainIP) {
|
||||
|
@ -159,9 +160,7 @@ void VoxelServer::run() {
|
|||
}
|
||||
}
|
||||
|
||||
nodeList->linkedDataCreateCallback = &attachVoxelNodeDataToNode;
|
||||
nodeList->startSilentNodeRemovalThread();
|
||||
|
||||
srand((unsigned)time(0));
|
||||
|
||||
const char* DISPLAY_VOXEL_STATS = "--displayVoxelStats";
|
||||
|
|
Loading…
Reference in a new issue