| 579 | } |
| 580 | |
| 581 | void cPopulationCell::UpdateCellDataExpired() |
| 582 | { |
| 583 | const int expiration = m_world->GetConfig().MARKING_EXPIRE_DATE.Get(); |
| 584 | const int update = m_world->GetStats().GetUpdate(); |
| 585 | const int ud_marked = m_cell_data.update; |
| 586 | // update only if marked, can expire, and enough time has passed |
| 587 | if (ud_marked != -1 && expiration != -1 && (expiration < (update - ud_marked))) ClearCellData(); |
| 588 | } |
no test coverage detected