Initialize mTimerDisposeSummonsCorpses in class definition

revert-6246b479
elsid 2 years ago
parent 86e5b94ef6
commit fb5e5335aa
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -1164,9 +1164,6 @@ namespace MWMechanics
Actors::Actors()
: mSmoothMovement(Settings::Manager::getBool("smooth movement", "Game"))
{
mTimerDisposeSummonsCorpses
= 0.2f; // We should add a delay between summoned creature death and its corpse despawning
updateProcessingRange();
}

@ -179,7 +179,8 @@ namespace MWMechanics
std::map<ESM::RefId, int> mDeathCount;
std::list<Actor> mActors;
std::map<const MWWorld::LiveCellRefBase*, std::list<Actor>::iterator> mIndex;
float mTimerDisposeSummonsCorpses;
// We should add a delay between summoned creature death and its corpse despawning
float mTimerDisposeSummonsCorpses = 0.2f;
float mTimerUpdateHeadTrack = 0;
float mTimerUpdateEquippedLight = 0;
float mTimerUpdateHello = 0;

Loading…
Cancel
Save