更新 'src/MultiPlayer/multiplaymgr.cxx'
This commit is contained in:
parent
80c49fbf80
commit
12f6821a98
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user