Mercurial > mm7
diff ParticleEngine.cpp @ 1980:c1c74df0a33e
changing most of auto types to their actual types
author | Grumpy7 |
---|---|
date | Wed, 30 Oct 2013 00:47:37 -0700 |
parents | 7182930263b3 |
children | 2e6c63bdcfa9 |
line wrap: on
line diff
--- a/ParticleEngine.cpp Mon Oct 28 22:16:42 2013 -0700 +++ b/ParticleEngine.cpp Wed Oct 30 00:47:37 2013 -0700 @@ -177,7 +177,7 @@ for (uint i = uStartParticle; i <= uEndParticle; ++i) { - auto p = pParticles + i; + Particle* p = &pParticles[i]; if (p->type == ParticleType_Invalid) continue; @@ -531,7 +531,7 @@ //HIDWORD(v8) = fixpoint_sub_unknown(v6->x - pIndoorCamera->pos.x, v5); //v12 = v6->_z + 6.7553994e15; //uIDd = (LODWORD(v12) - pIndoorCamera->pos.z) << 16; - auto _hidword_v12 = fixpoint_mul(v11, v3) + fixpoint_sub_unknown(v6->z - pGame->pIndoorCameraD3D->vPartyPos.z, v44); + long long _hidword_v12 = fixpoint_mul(v11, v3) + fixpoint_sub_unknown(v6->z - pGame->pIndoorCameraD3D->vPartyPos.z, v44); LODWORD(v13) = 0; HIDWORD(v13) = SLOWORD(pODMRenderParams->int_fov_rad); //v14 = v13 / _hidword_v12; @@ -569,7 +569,7 @@ //v21 = v6->_z + 6.7553994e15; LODWORD(v22) = 0; HIDWORD(v22) = SLOWORD(pODMRenderParams->int_fov_rad); - auto _var_123 = fixpoint_sub_unknown(v6->x - pGame->pIndoorCameraD3D->vPartyPos.x, v4) + fixpoint_sub_unknown(v6->y - pGame->pIndoorCameraD3D->vPartyPos.y, v5); + long long _var_123 = fixpoint_sub_unknown(v6->x - pGame->pIndoorCameraD3D->vPartyPos.x, v4) + fixpoint_sub_unknown(v6->y - pGame->pIndoorCameraD3D->vPartyPos.y, v5); //v23 = v22 / _var_123; v6->_screenspace_scale = v22 / _var_123; //v24 = v6->_screenspace_scale; @@ -636,7 +636,7 @@ for (uint i = uStartParticle; i < uEndParticle; ++i) { - auto p = pParticles + i; + Particle* p = &pParticles[i]; if (p->type == ParticleType_Invalid) continue; @@ -755,7 +755,7 @@ //v16 = this->uStartParticle; for (uint i = uStartParticle; i <= uEndParticle; ++i) { - auto particle = pParticles + i; + Particle* particle = &pParticles[i]; if (particle->type == ParticleType_Invalid || !ViewProject_TrueIfStillVisible_ODM(i)) continue;