更新 'src/MultiPlayer/multiplaymgr.cxx'
This commit is contained in:
parent
80c49fbf80
commit
12f6821a98
@ -2129,7 +2129,9 @@ FGMultiplayMgr::update(double dt)
|
|||||||
// check for expiry
|
// check for expiry
|
||||||
MultiPlayerMap::iterator it = mMultiPlayerMap.begin();
|
MultiPlayerMap::iterator it = mMultiPlayerMap.begin();
|
||||||
while (it != mMultiPlayerMap.end()) {
|
while (it != mMultiPlayerMap.end()) {
|
||||||
if (it->second->getLastTimestamp() + 10 < stamp) {
|
//if (it->second->getLastTimestamp() + 10 < stamp) {
|
||||||
|
//zhongjin 处理ADS-B 数据,增加到60秒
|
||||||
|
if (it->second->getLastTimestamp() + 60 < stamp) {
|
||||||
std::string name = it->first;
|
std::string name = it->first;
|
||||||
it->second->setDie(true);
|
it->second->setDie(true);
|
||||||
mMultiPlayerMap.erase(it);
|
mMultiPlayerMap.erase(it);
|
||||||
|
Loading…
Reference in New Issue
Block a user