- refactored the thinker list.

This was an unorganized set of static members in DThinker but has now been regrouped into something more structured.
This commit is contained in:
Christoph Oelckers 2019-01-30 02:15:48 +01:00
commit 3b4ded5694
11 changed files with 508 additions and 470 deletions

View file

@ -295,8 +295,14 @@ void DPusher::Tick ()
void FLevelLocals::AdjustPusher(int tag, int magnitude, int angle, bool wind)
{
DPusher::EPusher type = wind ? DPusher::p_wind : DPusher::p_current;
struct FThinkerCollection
{
int RefNum;
DThinker *Obj;
};
DPusher::EPusher type = wind? DPusher::p_wind : DPusher::p_current;
// Find pushers already attached to the sector, and change their parameters.
TArray<FThinkerCollection> Collection;
{