mirror of https://github.com/PrimeDecomp/prime.git
parent
64b3014f99
commit
cc9228e108
|
@ -441,7 +441,7 @@ void CScriptMazeNode::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, C
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CObjectList& list = mgr.GetObjectListById(kOL_All);
|
CObjectList& list = mgr.ObjectListById(kOL_All);
|
||||||
for (int objIdx = list.GetFirstObjectIndex(); objIdx != -1;
|
for (int objIdx = list.GetFirstObjectIndex(); objIdx != -1;
|
||||||
objIdx = list.GetNextObjectIndex(objIdx)) {
|
objIdx = list.GetNextObjectIndex(objIdx)) {
|
||||||
if (CScriptMazeNode* node = TCastToPtr< CScriptMazeNode >(list[objIdx])) {
|
if (CScriptMazeNode* node = TCastToPtr< CScriptMazeNode >(list[objIdx])) {
|
||||||
|
|
|
@ -41,7 +41,7 @@ void CScriptRandomRelay::SendLocalScriptMsgs(EScriptObjectState state, CStateMan
|
||||||
rstl::vector< SConnection >::const_iterator conn = GetConnectionList().begin();
|
rstl::vector< SConnection >::const_iterator conn = GetConnectionList().begin();
|
||||||
for (; conn != GetConnectionList().end(); ++conn) {
|
for (; conn != GetConnectionList().end(); ++conn) {
|
||||||
if (conn->x0_state == kSS_Zero) {
|
if (conn->x0_state == kSS_Zero) {
|
||||||
CObjectList& objList = stateMgr.GetObjectListById(kOL_All);
|
CObjectList& objList = stateMgr.ObjectListById(kOL_All);
|
||||||
CStateManager::TIdListResult list = stateMgr.GetIdListForScript(conn->x8_objId);
|
CStateManager::TIdListResult list = stateMgr.GetIdListForScript(conn->x8_objId);
|
||||||
if (!(list.first == list.second)) {
|
if (!(list.first == list.second)) {
|
||||||
for (CStateManager::TIdList::const_iterator it = list.first; it != list.second; ++it) {
|
for (CStateManager::TIdList::const_iterator it = list.first; it != list.second; ++it) {
|
||||||
|
|
Loading…
Reference in New Issue