File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ void CCameraManager::UpdateDeffered()
8686 RemoveCamEffector ((*it)->eType );
8787
8888 if ((*it)->AbsolutePositioning ())
89- m_EffectorsCam.push_front ( *it);
89+ m_EffectorsCam.insert (m_EffectorsCam. begin (), *it);
9090 else
9191 m_EffectorsCam.push_back (*it);
9292 }
@@ -247,9 +247,8 @@ void CCameraManager::UpdateCamEffectors()
247247{
248248 if (m_EffectorsCam.empty ())
249249 return ;
250- EffectorCamVec::reverse_iterator rit = m_EffectorsCam.rbegin ();
251- for (; rit != m_EffectorsCam.rend (); ++rit)
252- ProcessCameraEffector (*rit);
250+ for (int i = m_EffectorsCam.size () - 1 ; i >= 0 ; --i)
251+ ProcessCameraEffector (m_EffectorsCam[i]);
253252
254253 m_cam_info.d .normalize ();
255254 m_cam_info.n .normalize ();
Original file line number Diff line number Diff line change 33#include " CameraDefs.h"
44#include " xrCore/PostProcess/PPInfo.hpp"
55
6- using EffectorCamVec = xr_list <CEffectorCam*>;
6+ using EffectorCamVec = xr_vector <CEffectorCam*>;
77using EffectorPPVec = xr_vector<CEffectorPP*>;
88
99#define effCustomEffectorStartID 10000
You can’t perform that action at this time.
0 commit comments