mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:36:57 +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);
|
NodeList* nodeList = NodeList::createInstance(NODE_TYPE_VOXEL_SERVER, listenPort);
|
||||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||||
|
|
||||||
// tell our NodeList about our desire to get notifications
|
// tell our NodeList about our desire to get notifications
|
||||||
nodeList->addHook(&nodeWatcher);
|
nodeList->addHook(&nodeWatcher);
|
||||||
|
nodeList->linkedDataCreateCallback = &attachVoxelNodeDataToNode;
|
||||||
|
|
||||||
// Handle Local Domain testing with the --local command line
|
// Handle Local Domain testing with the --local command line
|
||||||
const char* local = "--local";
|
const char* local = "--local";
|
||||||
::wantLocalDomain = getCmdOption(_argc, _argv,local);
|
::wantLocalDomain = cmdOptionExists(_argc, _argv, local);
|
||||||
if (::wantLocalDomain) {
|
if (::wantLocalDomain) {
|
||||||
printf("Local Domain MODE!\n");
|
printf("Local Domain MODE!\n");
|
||||||
nodeList->setDomainIPToLocalhost();
|
NodeList::getInstance()->setDomainIPToLocalhost();
|
||||||
} else {
|
} else {
|
||||||
const char* domainIP = getCmdOption(_argc, _argv, "--domain");
|
const char* domainIP = getCmdOption(_argc, _argv, "--domain");
|
||||||
if (domainIP) {
|
if (domainIP) {
|
||||||
|
@ -159,9 +160,7 @@ void VoxelServer::run() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nodeList->linkedDataCreateCallback = &attachVoxelNodeDataToNode;
|
|
||||||
nodeList->startSilentNodeRemovalThread();
|
nodeList->startSilentNodeRemovalThread();
|
||||||
|
|
||||||
srand((unsigned)time(0));
|
srand((unsigned)time(0));
|
||||||
|
|
||||||
const char* DISPLAY_VOXEL_STATS = "--displayVoxelStats";
|
const char* DISPLAY_VOXEL_STATS = "--displayVoxelStats";
|
||||||
|
|
Loading…
Reference in a new issue