eliminate freeze when encountering players by preloading race motions

This commit is contained in:
savis
2026-01-04 10:41:48 +01:00
parent 4c21fe697c
commit 2550008f6d
4 changed files with 57 additions and 1 deletions

View File

@@ -534,7 +534,7 @@ void CGraphicThingInstance::RegisterMotionThing(DWORD dwMotionKey, CGraphicThing
{
CGraphicThing::TRef * pMotionRef = new CGraphicThing::TRef;
pMotionRef->SetPointer(pMotionThing);
m_roMotionThingMap.insert(std::map<DWORD, CGraphicThing::TRef *>::value_type(dwMotionKey, pMotionRef));
m_roMotionThingMap.insert(std::make_pair(dwMotionKey, pMotionRef));
}
void CGraphicThingInstance::ResetLocalTime()