Mercurial > mm7
comparison mm7_3.cpp @ 322:ce39b96acf5c
Killing friendly peasants subs
author | Nomad |
---|---|
date | Wed, 20 Feb 2013 04:36:14 +0200 |
parents | e41fe9cf3613 |
children | d720a13e2273 |
comparison
equal
deleted
inserted
replaced
321:15decc249a94 | 322:ce39b96acf5c |
---|---|
6229 if ( pIndoorCamera->sRotationX ) | 6229 if ( pIndoorCamera->sRotationX ) |
6230 v17 = (unsigned __int64)(v17 * (signed __int64)v18) >> 16; | 6230 v17 = (unsigned __int64)(v17 * (signed __int64)v18) >> 16; |
6231 v19 = v4 * v6 - v3 * v21; | 6231 v19 = v4 * v6 - v3 * v21; |
6232 v7 = abs(v4); | 6232 v7 = abs(v4); |
6233 v8 = abs(v3); | 6233 v8 = abs(v3); |
6234 v9 = sub_4621DA(v8, v7, 0); | 6234 v9 = int_get_vector_length(v8, v7, 0); |
6235 v10 = v14 * 188; | 6235 v10 = v14 * 188; |
6236 v22 = v9; | 6236 v22 = v9; |
6237 *v16 = 0; | 6237 *v16 = 0; |
6238 if ( v9 < pOutdoor->pBModels[v14].sBoundingRadius + 256 ) | 6238 if ( v9 < pOutdoor->pBModels[v14].sBoundingRadius + 256 ) |
6239 *v16 = 1; | 6239 *v16 = 1; |
14488 { | 14488 { |
14489 pX = pOutdoor->pBModels[v4].vBoundingCenter.x - v19; | 14489 pX = pOutdoor->pBModels[v4].vBoundingCenter.x - v19; |
14490 pY = pOutdoor->pBModels[v4].vBoundingCenter.y - v20; | 14490 pY = pOutdoor->pBModels[v4].vBoundingCenter.y - v20; |
14491 v5 = abs((signed)pY); | 14491 v5 = abs((signed)pY); |
14492 v6 = abs((signed)pX); | 14492 v6 = abs((signed)pX); |
14493 v7 = sub_4621DA(v6, v5, v2); | 14493 v7 = int_get_vector_length(v6, v5, v2); |
14494 v8 = &pOutdoor->pBModels[0]; | 14494 v8 = &pOutdoor->pBModels[0]; |
14495 if ( v7 < 2 * pOutdoor->pBModels[v4].sBoundingRadius ) | 14495 if ( v7 < 2 * pOutdoor->pBModels[v4].sBoundingRadius ) |
14496 { | 14496 { |
14497 v11 = __OFSUB__(pOutdoor->pBModels[v4].uNumFaces, v2); | 14497 v11 = __OFSUB__(pOutdoor->pBModels[v4].uNumFaces, v2); |
14498 v9 = pOutdoor->pBModels[v4].uNumFaces == v2; | 14498 v9 = pOutdoor->pBModels[v4].uNumFaces == v2; |
14589 { | 14589 { |
14590 pX = *(int *)((char *)&pOutdoor->pBModels[v4].vBoundingCenter.x) - v1; | 14590 pX = *(int *)((char *)&pOutdoor->pBModels[v4].vBoundingCenter.x) - v1; |
14591 pY = *(int *)((char *)&pOutdoor->pBModels[v4].vBoundingCenter.y) - LODWORD(v19); | 14591 pY = *(int *)((char *)&pOutdoor->pBModels[v4].vBoundingCenter.y) - LODWORD(v19); |
14592 v5 = abs((signed)pY); | 14592 v5 = abs((signed)pY); |
14593 v6 = abs((signed)pX); | 14593 v6 = abs((signed)pX); |
14594 v7 = sub_4621DA(v6, v5, 0); | 14594 v7 = int_get_vector_length(v6, v5, 0); |
14595 v8 = &pOutdoor->pBModels; | 14595 v8 = &pOutdoor->pBModels; |
14596 if ( v7 < *(int *)((char *)&pOutdoor->pBModels[v4].sBoundingRadius) ) | 14596 if ( v7 < *(int *)((char *)&pOutdoor->pBModels[v4].sBoundingRadius) ) |
14597 { | 14597 { |
14598 v9 = pOutdoor->pBModels[v4].uNumFaces == 0; | 14598 v9 = pOutdoor->pBModels[v4].uNumFaces == 0; |
14599 v10 = pOutdoor->pBModels[v4].uNumFaces < 0; | 14599 v10 = pOutdoor->pBModels[v4].uNumFaces < 0; |