1
0
Fork 0

Revert "src/MultiPlayer/multiplaymgr.cxx: don't overwrite /sim/multiplay/visibility-range-nm if already set."

This reverts commit 4a067e721f.
This commit is contained in:
Julian Smith 2019-07-27 15:42:17 +01:00
parent f770dc1c50
commit d71f8daa86

View file

@ -962,10 +962,7 @@ FGMultiplayMgr::FGMultiplayMgr()
pMultiPlayDebugLevel = fgGetNode("/sim/multiplay/debug-level", true); pMultiPlayDebugLevel = fgGetNode("/sim/multiplay/debug-level", true);
pMultiPlayTransmitPropertyBase = fgGetNode("/sim/multiplay/transmit-filter-property-base", true); pMultiPlayTransmitPropertyBase = fgGetNode("/sim/multiplay/transmit-filter-property-base", true);
pMultiPlayRange = fgGetNode("/sim/multiplay/visibility-range-nm", true); pMultiPlayRange = fgGetNode("/sim/multiplay/visibility-range-nm", true);
if (pMultiPlayRange->getIntValue() == 0) { pMultiPlayRange->setIntValue(100);
/* Only set if currently zero - this allows override e.g. in ~/.fgfsrc. */
pMultiPlayRange->setIntValue(100);
}
} // FGMultiplayMgr::FGMultiplayMgr() } // FGMultiplayMgr::FGMultiplayMgr()
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////