OpenTrespasser / JurassicParkTrespasser

A git-based fork of the Jurassic Park: Trespasser source code.
101 stars 25 forks source link

Refactor CWorldView::RemoveSomeInfluences #96

Closed meekee7 closed 3 years ago

meekee7 commented 4 years ago

The function CWorldView::RemoveSomeInfluences maintains a list of CInfluence objects with the mark-and-sweep technique: old influences as well as the lowest-priority-influence are "marked". If there are enough such obsolete influences, they are removed ("sweeped").

There are two key problems with the current implementation:

In a refactoring of the function, both problems are resolved:

GamerDude27 commented 3 years ago

A reminder that the main problem with this PR remains that it's trying to push to master and not dev.

meekee7 commented 3 years ago

Switched the target branch from master to dev