更新 'src/MultiPlayer/multiplaymgr.cxx'

This commit is contained in:
zhongjin 2022-12-16 14:56:30 +08:00
parent 80c49fbf80
commit 12f6821a98

View File

@ -2129,7 +2129,9 @@ FGMultiplayMgr::update(double dt)
// check for expiry
MultiPlayerMap::iterator it = mMultiPlayerMap.begin();
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;
it->second->setDie(true);
mMultiPlayerMap.erase(it);