diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-01 11:35:23 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-01 11:35:23 +0100 |
commit | 2f05c64470a2b04439a07646662ac6afb57901f5 (patch) | |
tree | 4c297e6ab4836f0efd3c82460695c7f72966269e | |
parent | CMoneyMessages::RegisterOne v2 (diff) | |
download | re3-2f05c64470a2b04439a07646662ac6afb57901f5.tar re3-2f05c64470a2b04439a07646662ac6afb57901f5.tar.gz re3-2f05c64470a2b04439a07646662ac6afb57901f5.tar.bz2 re3-2f05c64470a2b04439a07646662ac6afb57901f5.tar.lz re3-2f05c64470a2b04439a07646662ac6afb57901f5.tar.xz re3-2f05c64470a2b04439a07646662ac6afb57901f5.tar.zst re3-2f05c64470a2b04439a07646662ac6afb57901f5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Script.cpp | 4 | ||||
-rw-r--r-- | src/control/Script.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 6aa48d81..9856a8aa 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -1340,7 +1340,7 @@ void CMissionCleanup::Init() } } -CMissionCleanupEntity* CMissionCleanup::FindFree() +cleanup_entity_struct* CMissionCleanup::FindFree() { for (int i = 0; i < MAX_CLEANUP; i++){ if (m_sEntities[i].type == CLEANUP_UNUSED) @@ -1352,7 +1352,7 @@ CMissionCleanupEntity* CMissionCleanup::FindFree() void CMissionCleanup::AddEntityToList(int32 id, uint8 type) { - CMissionCleanupEntity* pNew = FindFree(); + cleanup_entity_struct* pNew = FindFree(); if (!pNew) return; pNew->id = id; diff --git a/src/control/Script.h b/src/control/Script.h index 1c4663ce..588c1f41 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -134,7 +134,7 @@ enum { CLEANUP_OBJECT }; -struct CMissionCleanupEntity +struct cleanup_entity_struct { uint8 type; int32 id; @@ -148,14 +148,14 @@ enum { class CMissionCleanup { - CMissionCleanupEntity m_sEntities[MAX_CLEANUP]; + cleanup_entity_struct m_sEntities[MAX_CLEANUP]; uint8 m_nCount; public: CMissionCleanup(); void Init(); - CMissionCleanupEntity* FindFree(); + cleanup_entity_struct* FindFree(); void AddEntityToList(int32, uint8); void RemoveEntityFromList(int32, uint8); void Process(); |