1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-30 22:17:13 +02:00

Fix issues in the entity creation and destruction code.

Implement a locking mechanism to prevent entities be dstroyed in mid-destruction.
Also clean up properly when internal instances are deleted.
This commit is contained in:
Sandu Liviu Catalin
2016-03-24 05:28:55 +02:00
parent 23617b1493
commit 01bafd7c4f
3 changed files with 310 additions and 59 deletions

View File

@ -385,7 +385,8 @@ enum EventType
enum EntityFlags
{
ENF_DEFAULT = (0),
ENF_OWNED = (1 < 0)
ENF_OWNED = (1 << 1),
ENF_LOCKED = (2 << 1)
};
// ------------------------------------------------------------------------------------------------