Skip to content

Commit

Permalink
Use auto type for particles nWorkers
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 5, 2018
1 parent 0f83581 commit d43de2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Layers/xrRender/ParticleEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ void CParticleEffect::Render(float)
FVF::LIT* pv_start = (FVF::LIT*)RCache.Vertex.Lock(p_cnt * 4 * 4, geom->vb_stride, dwOffset);
FVF::LIT* pv = pv_start;

u32 nWorkers = ttapi.threads.size();
auto nWorkers = ttapi.threads.size();

if (p_cnt < nWorkers)
nWorkers = p_cnt;
Expand Down
2 changes: 1 addition & 1 deletion src/xrParticles/particle_actions_collection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ void PATurbulence::Execute(ParticleEffect* effect, const float dt, float& tm_max
if (!p_cnt)
return;

u32 nWorkers = ttapi.threads.size();
auto nWorkers = ttapi.threads.size();

if (p_cnt < nWorkers)
nWorkers = p_cnt;
Expand Down

0 comments on commit d43de2e

Please sign in to comment.