Mercurial > mm7
comparison mm7_4.cpp @ 295:640a176c030f
sub_42ECB5
author | Nomad |
---|---|
date | Tue, 19 Feb 2013 13:29:02 +0200 |
parents | ac44e716d051 |
children | af7e848d6def |
comparison
equal
deleted
inserted
replaced
275:250e49fef6f6 | 295:640a176c030f |
---|---|
1115 LABEL_25: | 1115 LABEL_25: |
1116 result = 0; | 1116 result = 0; |
1117 } | 1117 } |
1118 else | 1118 else |
1119 { | 1119 { |
1120 v13 = v12 - sub_452A9E(v17 * v17 - v11 * v11); | 1120 v13 = v12 - integer_sqrt(v17 * v17 - v11 * v11); |
1121 if ( v13 < 0 ) | 1121 if ( v13 < 0 ) |
1122 v13 = 0; | 1122 v13 = 0; |
1123 if ( v13 < stru_721530.field_7C ) | 1123 if ( v13 < stru_721530.field_7C ) |
1124 { | 1124 { |
1125 stru_721530.field_7C = v13; | 1125 stru_721530.field_7C = v13; |
1198 + ((unsigned __int64)(stru_721530.field_58.z * (signed __int64)v9) >> 16); | 1198 + ((unsigned __int64)(stru_721530.field_58.z * (signed __int64)v9) >> 16); |
1199 if ( v11 >= v10 ) | 1199 if ( v11 >= v10 ) |
1200 { | 1200 { |
1201 if ( v11 <= v18 + v10 ) | 1201 if ( v11 <= v18 + v10 ) |
1202 { | 1202 { |
1203 v12 = v9 - sub_452A9E(v8 * v8 - v17 * v17); | 1203 v12 = v9 - integer_sqrt(v8 * v8 - v17 * v17); |
1204 if ( v12 < 0 ) | 1204 if ( v12 < 0 ) |
1205 v12 = 0; | 1205 v12 = 0; |
1206 if ( v12 < stru_721530.field_7C ) | 1206 if ( v12 < stru_721530.field_7C ) |
1207 { | 1207 { |
1208 stru_721530.field_7C = v12; | 1208 stru_721530.field_7C = v12; |
1307 + ((unsigned __int64)(stru_721530.field_58.z * (signed __int64)v14) >> 16); | 1307 + ((unsigned __int64)(stru_721530.field_58.z * (signed __int64)v14) >> 16); |
1308 if ( v16 >= v15 ) | 1308 if ( v16 >= v15 ) |
1309 { | 1309 { |
1310 if ( v16 <= v22 + v15 ) | 1310 if ( v16 <= v22 + v15 ) |
1311 { | 1311 { |
1312 v17 = v14 - sub_452A9E(v13 * v13 - v21 * v21); | 1312 v17 = v14 - integer_sqrt(v13 * v13 - v21 * v21); |
1313 if ( v17 < 0 ) | 1313 if ( v17 < 0 ) |
1314 v17 = 0; | 1314 v17 = 0; |
1315 if ( v17 < stru_721530.field_7C ) | 1315 if ( v17 < stru_721530.field_7C ) |
1316 { | 1316 { |
1317 stru_721530.field_7C = v17; | 1317 stru_721530.field_7C = v17; |
8714 { | 8714 { |
8715 v62 = pBLVRenderParams->vPartyPos.z - v61; | 8715 v62 = pBLVRenderParams->vPartyPos.z - v61; |
8716 } | 8716 } |
8717 v64 = v62 * v62 + v60; | 8717 v64 = v62 * v62 + v60; |
8718 if ( v64 ) | 8718 if ( v64 ) |
8719 stru_F8AD28.field_34 = sub_452A9E(v64) << 16; | 8719 stru_F8AD28.field_34 = integer_sqrt(v64) << 16; |
8720 else | 8720 else |
8721 stru_F8AD28.field_34 = 0; | 8721 stru_F8AD28.field_34 = 0; |
8722 v68 = (BLVFaceExtra *)abs(stru_F8AD28.rotated_normal.y); | 8722 v68 = (BLVFaceExtra *)abs(stru_F8AD28.rotated_normal.y); |
8723 v65 = (double)(signed int)v68; | 8723 v65 = (double)(signed int)v68; |
8724 if ( v65 >= 655.36 ) | 8724 if ( v65 >= 655.36 ) |