mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Added StoppedNotify()
This fixes scripts waiting for another executing script which fixes Actor being stuck on some animations
This commit is contained in:
parent
7fe7a12167
commit
4695932ea1
2 changed files with 12 additions and 1 deletions
|
@ -76,6 +76,16 @@ ScriptClass::~ScriptClass()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
====================
|
||||||
|
StoppedNotify
|
||||||
|
====================
|
||||||
|
*/
|
||||||
|
void ScriptClass::StoppedNotify()
|
||||||
|
{
|
||||||
|
delete this;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
====================
|
====================
|
||||||
Archive
|
Archive
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
===========================================================================
|
===========================================================================
|
||||||
Copyright (C) 2015 the OpenMoHAA team
|
Copyright (C) 2023 the OpenMoHAA team
|
||||||
|
|
||||||
This file is part of OpenMoHAA source code.
|
This file is part of OpenMoHAA source code.
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@ public:
|
||||||
ScriptClass();
|
ScriptClass();
|
||||||
~ScriptClass();
|
~ScriptClass();
|
||||||
|
|
||||||
|
void StoppedNotify() override;
|
||||||
void Archive(Archiver &arc) override;
|
void Archive(Archiver &arc) override;
|
||||||
void ArchiveInternal(Archiver &arc);
|
void ArchiveInternal(Archiver &arc);
|
||||||
static void ArchiveScript(Archiver& arc, ScriptClass **obj);
|
static void ArchiveScript(Archiver& arc, ScriptClass **obj);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue