mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47:42 +00:00
CScriptTrigger work
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "CSortedLists.hpp"
|
||||
#include "World/CActor.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
@@ -20,9 +21,19 @@ void CSortedListManager::RemoveFromList(ESortedList list, s16 id)
|
||||
SSortedList& sl = xb000_sortedLists[u32(list)];
|
||||
}
|
||||
|
||||
void CSortedListManager::Remove(const CActor *)
|
||||
void CSortedListManager::Remove(const CActor* act)
|
||||
{
|
||||
SNode& node = x0_nodes[act->GetUniqueId() & 0x3ff];
|
||||
if (node.x2a_full == false)
|
||||
return;
|
||||
|
||||
RemoveFromList(ESortedList::Zero, node.x1c_);
|
||||
RemoveFromList(ESortedList::Three, node.x22_);
|
||||
RemoveFromList(ESortedList::One, node.x1e_);
|
||||
RemoveFromList(ESortedList::Four, node.x24_);
|
||||
RemoveFromList(ESortedList::Two, node.x20_);
|
||||
RemoveFromList(ESortedList::Five, node.x26_);
|
||||
node.x2a_full = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user