Mercurial > mm7
diff mm7_5.cpp @ 1980:c1c74df0a33e
changing most of auto types to their actual types
author | Grumpy7 |
---|---|
date | Wed, 30 Oct 2013 00:47:37 -0700 |
parents | 92dfa0cafbe3 |
children | 985fff9fb62d |
line wrap: on
line diff
--- a/mm7_5.cpp Mon Oct 28 22:16:42 2013 -0700 +++ b/mm7_5.cpp Wed Oct 30 00:47:37 2013 -0700 @@ -525,7 +525,7 @@ { for (uint i = 0; i < uNumBillboardsToDraw; ++i) { - auto p = &pBillboardRenderList[i]; + RenderBillboard* p = &pBillboardRenderList[i]; if (p->field_1E & 2 || uCurrentlyLoadedLevelType == LEVEL_Indoor && !p->uIndoorSectorID) p->dimming_level = 0; @@ -593,15 +593,15 @@ v6 = uBaseLightLevel; for (uint i = 0; i < pMobileLightsStack->uNumLightsActive; ++i) { - auto p = pMobileLightsStack->pLights + i; + MobileLight* p = &pMobileLightsStack->pLights[i]; - auto distX = abs(p->vPosition.x - x); + float distX = abs(p->vPosition.x - x); if ( distX <= p->uRadius) { - auto distY = abs(p->vPosition.y - y); + float distY = abs(p->vPosition.y - y); if ( distY <= p->uRadius) { - auto distZ = abs(p->vPosition.z - z); + float distZ = abs(p->vPosition.z - z); if ( distZ <= p->uRadius) { v8 = distX; @@ -635,7 +635,7 @@ if ( uCurrentlyLoadedLevelType == LEVEL_Indoor) { - auto pSector = pIndoor->pSectors + uSectorID; + BLVSector* pSector = &pIndoor->pSectors[uSectorID]; for (uint i = 0; i < pSector->uNumLights; ++i) { @@ -685,7 +685,7 @@ for (uint i = 0; i < pStationaryLightsStack->uNumLightsActive; ++i) { - auto p = pStationaryLightsStack->pLights + i; + StationaryLight* p = &pStationaryLightsStack->pLights[i]; v26 = abs(p->vPosition.x - x); if ( v26 <= p->uRadius) {