AbstractedSheep.ShuttleTrackerWorld.World.RemoveOldShuttles C# (CSharp) Method

RemoveOldShuttles() public method

Removes all shuttles older than SHUTTLE_EXPIRATION_TIME
public RemoveOldShuttles ( ) : void
return void
        public void RemoveOldShuttles()
        {
            foreach (KeyValuePair<int, Shuttle> kvp in shuttles)
            {
                if (CurrentTimeMillis() - kvp.Value.LastUpdateTime > SHUTTLE_EXPIRATION_TIME)
                    shuttles.Remove(kvp.Key);
            }
        }