mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-12 23:54:17 +00:00
- Fixed: Pointer substitution changed the pointers for the thinker ring list
resulting in a freeze. SVN r802 (trunk)
This commit is contained in:
parent
6715b84d0d
commit
4096939f72
3 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
March 13, 2008 (Changes by Graf Zahl)
|
||||||
|
- Fixed: Pointer substitution changed the pointers for the thinker ring list
|
||||||
|
resulting in a freeze.
|
||||||
|
|
||||||
March 12, 2008
|
March 12, 2008
|
||||||
- Fixed: DACSThinker::ActiveThinker was missing a read barrier.
|
- Fixed: DACSThinker::ActiveThinker was missing a read barrier.
|
||||||
- Loading a save game now initiates a collection.
|
- Loading a save game now initiates a collection.
|
||||||
|
|
|
@ -435,6 +435,17 @@ void DThinker::Tick ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DThinker::PointerSubstitution(DObject *old, DObject *notOld)
|
||||||
|
{
|
||||||
|
// Pointer substitution must not, under any circumstances, change
|
||||||
|
// the linked thinker list or the game will freeze badly.
|
||||||
|
DThinker *next = NextThinker;
|
||||||
|
DThinker *prev = PrevThinker;
|
||||||
|
Super::PointerSubstitution(old, notOld);
|
||||||
|
NextThinker = next;
|
||||||
|
PrevThinker = prev;
|
||||||
|
}
|
||||||
|
|
||||||
FThinkerIterator::FThinkerIterator (const PClass *type, int statnum)
|
FThinkerIterator::FThinkerIterator (const PClass *type, int statnum)
|
||||||
{
|
{
|
||||||
if ((unsigned)statnum > MAX_STATNUM)
|
if ((unsigned)statnum > MAX_STATNUM)
|
||||||
|
|
|
@ -69,7 +69,8 @@ public:
|
||||||
virtual ~DThinker ();
|
virtual ~DThinker ();
|
||||||
virtual void Tick ();
|
virtual void Tick ();
|
||||||
virtual void PostBeginPlay (); // Called just before the first tick
|
virtual void PostBeginPlay (); // Called just before the first tick
|
||||||
|
void PointerSubstitution(DObject *old, DObject *notOld);
|
||||||
|
|
||||||
void ChangeStatNum (int statnum);
|
void ChangeStatNum (int statnum);
|
||||||
|
|
||||||
static void RunThinkers ();
|
static void RunThinkers ();
|
||||||
|
|
Loading…
Reference in a new issue