mirror of https://github.com/PrimeDecomp/prime.git
Use GetIdListForScript in CScriptSpecialFunction::AcceptScriptMsg
This commit is contained in:
parent
2a8278c1b3
commit
3fd463fc8a
|
@ -343,13 +343,13 @@ 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);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue