mirror of https://github.com/PrimeDecomp/prime.git
Use GetIdListForScript in CScriptSpecialFunction::AcceptScriptMsg
Former-commit-id: 3fd463fc8a
This commit is contained in:
parent
01b02f2397
commit
250461ddec
|
@ -343,15 +343,15 @@ void CScriptSpecialFunction::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetIdListForScript seems very different between Ghidra and Metaforce
|
const CStateManager::TIdListResult& it = mgr.GetIdListForScript(conn->x8_objId);
|
||||||
// const auto search = mgr.GetIdListForScript(conn->x8_objId);
|
if (it.first != it.second) {
|
||||||
|
TUniqueId uid = it.first->second;
|
||||||
rstl::pair< TUniqueId, TUniqueId >* it;
|
if (CActor* act = TCastToPtr< CActor >(mgr.ObjectById(uid))) {
|
||||||
if (CActor* act = TCastToPtr< CActor >(mgr.ObjectById(it->second))) {
|
x198_ringControllers.push_back(SRingController(uid, 0.f, false));
|
||||||
x198_ringControllers.push_back(SRingController(it->second, 0.f, false));
|
|
||||||
act->RemoveMaterial(kMT_Occluder, mgr);
|
act->RemoveMaterial(kMT_Occluder, mgr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: there's an actual sort symbol, so it's a templated sort somewhere
|
// TODO: there's an actual sort symbol, so it's a templated sort somewhere
|
||||||
// std::sort(x198_ringControllers.begin(), x198_ringControllers.end(),
|
// std::sort(x198_ringControllers.begin(), x198_ringControllers.end(),
|
||||||
|
|
Loading…
Reference in New Issue