Mercurial > mm7
comparison Render.cpp @ 1075:1e38e5c049f3
DecalBuilder cleaning and some type changes
author | zipi |
---|---|
date | Sat, 25 May 2013 14:07:26 +0100 |
parents | d4a1a46192ba |
children | c59ac5ea63f5 |
comparison
equal
deleted
inserted
replaced
1074:d6bea22f8b53 | 1075:1e38e5c049f3 |
---|---|
1933 int v81; // [sp+0h] [bp-D0h]@109 | 1933 int v81; // [sp+0h] [bp-D0h]@109 |
1934 int v82; // [sp+54h] [bp-7Ch]@1 | 1934 int v82; // [sp+54h] [bp-7Ch]@1 |
1935 int v83; // [sp+60h] [bp-70h]@1 | 1935 int v83; // [sp+60h] [bp-70h]@1 |
1936 int v84; // [sp+6Ch] [bp-64h]@1 | 1936 int v84; // [sp+6Ch] [bp-64h]@1 |
1937 int v85; // [sp+70h] [bp-60h]@63 | 1937 int v85; // [sp+70h] [bp-60h]@63 |
1938 int a4; // [sp+74h] [bp-5Ch]@73 | 1938 float a4; // [sp+74h] [bp-5Ch]@73 |
1939 float v87; // [sp+78h] [bp-58h]@122 | 1939 float v87; // [sp+78h] [bp-58h]@122 |
1940 int v88; // [sp+7Ch] [bp-54h]@1 | 1940 int v88; // [sp+7Ch] [bp-54h]@1 |
1941 int v89; // [sp+80h] [bp-50h]@6 | 1941 int v89; // [sp+80h] [bp-50h]@6 |
1942 float v90; // [sp+84h] [bp-4Ch]@1 | 1942 float v90; // [sp+84h] [bp-4Ch]@1 |
1943 float v91; // [sp+88h] [bp-48h]@1 | 1943 float v91; // [sp+88h] [bp-48h]@1 |
2094 atexit(loc_481199); | 2094 atexit(loc_481199); |
2095 }*/ | 2095 }*/ |
2096 v32 = (struct8 *)array_50AC10; | 2096 v32 = (struct8 *)array_50AC10; |
2097 v97 = (int)pGame->pLightmapBuilder; | 2097 v97 = (int)pGame->pLightmapBuilder; |
2098 pGame->pLightmapBuilder->StackLights_TerrainFace(v23, &v95, array_50AC10, 4, 1); | 2098 pGame->pLightmapBuilder->StackLights_TerrainFace(v23, &v95, array_50AC10, 4, 1); |
2099 pDecalBuilder->_49BE8A(v16, *(float *)&v23, (int)&v95, array_50AC10, 4, 1); | 2099 pDecalBuilder->_49BE8A(v16, v23, &v95, array_50AC10, 4, 1); |
2100 a5 = 4; | 2100 a5 = 4; |
2101 if ( byte_4D864C && pGame->uFlags & 0x80 ) | 2101 if ( byte_4D864C && pGame->uFlags & 0x80 ) |
2102 { | 2102 { |
2103 thisa = pGame->pIndoorCameraD3D; | 2103 thisa = pGame->pIndoorCameraD3D; |
2104 if ( pGame->pIndoorCameraD3D->_4371C3(array_50AC10, &a5, 0) == 1 && !a5 ) | 2104 if ( pGame->pIndoorCameraD3D->_4371C3(array_50AC10, &a5, 0) == 1 && !a5 ) |
2236 stru148(stru_76D590); | 2236 stru148(stru_76D590); |
2237 atexit(loc_48118F); | 2237 atexit(loc_48118F); |
2238 }*/ | 2238 }*/ |
2239 v96 = pGame->pLightmapBuilder; | 2239 v96 = pGame->pLightmapBuilder; |
2240 pGame->pLightmapBuilder->StackLights_TerrainFace(v48, (float *)&a4, array_50AC10, 3, 0); | 2240 pGame->pLightmapBuilder->StackLights_TerrainFace(v48, (float *)&a4, array_50AC10, 3, 0); |
2241 pDecalBuilder->_49BE8A(v40, *(float *)&v48, (int)&a4, array_50AC10, 3, 0); | 2241 pDecalBuilder->_49BE8A(v40, v48, &a4, array_50AC10, 3, 0); |
2242 uNumVertices = 3; | 2242 uNumVertices = 3; |
2243 if ( byte_4D864C && pGame->uFlags & 0x80 ) | 2243 if ( byte_4D864C && pGame->uFlags & 0x80 ) |
2244 { | 2244 { |
2245 thisb = pGame->pIndoorCameraD3D; | 2245 thisb = pGame->pIndoorCameraD3D; |
2246 if ( pGame->pIndoorCameraD3D->_4371C3(array_50AC10, &uNumVertices, 0) == 1 && !uNumVertices ) | 2246 if ( pGame->pIndoorCameraD3D->_4371C3(array_50AC10, &uNumVertices, 0) == 1 && !uNumVertices ) |
2359 __init_flag1 = true; | 2359 __init_flag1 = true; |
2360 stru154::stru154(&static_sub_0048034E_stru_76D578); | 2360 stru154::stru154(&static_sub_0048034E_stru_76D578); |
2361 }*/ | 2361 }*/ |
2362 v96 = pGame->pLightmapBuilder; | 2362 v96 = pGame->pLightmapBuilder; |
2363 pGame->pLightmapBuilder->StackLights_TerrainFace(v63, &v87, array_50AC10, 3, 1); | 2363 pGame->pLightmapBuilder->StackLights_TerrainFace(v63, &v87, array_50AC10, 3, 1); |
2364 pDecalBuilder->_49BE8A(v40, *(float *)&v63, (int)&v87, array_50AC10, 3, 1); | 2364 pDecalBuilder->_49BE8A(v40, v63, &v87, array_50AC10, 3, 1); |
2365 v100 = 3; | 2365 v100 = 3; |
2366 if ( byte_4D864C && pGame->uFlags & 0x80 ) | 2366 if ( byte_4D864C && pGame->uFlags & 0x80 ) |
2367 { | 2367 { |
2368 thisc = pGame->pIndoorCameraD3D; | 2368 thisc = pGame->pIndoorCameraD3D; |
2369 if ( pGame->pIndoorCameraD3D->_4371C3(array_50AC10, (unsigned int *)&v100, 0) == 1 && !v100 ) | 2369 if ( pGame->pIndoorCameraD3D->_4371C3(array_50AC10, (unsigned int *)&v100, 0) == 1 && !v100 ) |