Mercurial > mm7
comparison Vis.cpp @ 79:6ad816231528
structure fixes, death crash fix
author | zipi |
---|---|
date | Sat, 02 Feb 2013 16:52:36 +0000 |
parents | 31feb3432bbd |
children | 1faa29fd4c2d |
comparison
equal
deleted
inserted
replaced
78:d56c13146285 | 79:6ad816231528 |
---|---|
988 a5a = a4 + 1; | 988 a5a = a4 + 1; |
989 do | 989 do |
990 { | 990 { |
991 v12 = a1a; | 991 v12 = a1a; |
992 a3[2 * a1a] = a6->pXInterceptDisplacements[a1a] | 992 a3[2 * a1a] = a6->pXInterceptDisplacements[a1a] |
993 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v11] + 12 * a6->pVertexIDs[a1a]); | 993 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v11] + 12 * a6->pVertexIDs[a1a]); |
994 + pOutdoor->pBModels[v11].pVertices.pVertices[a6->pVertexIDs[a1a]].x; | |
994 *(a5a - 1) = a6->pYInterceptDisplacements[v12] | 995 *(a5a - 1) = a6->pYInterceptDisplacements[v12] |
995 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v11] + 12 * a6->pVertexIDs[v12] + 4); | 996 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v11] + 12 * a6->pVertexIDs[v12] + 4); |
997 + pOutdoor->pBModels[v11].pVertices.pVertices[a6->pVertexIDs[v12]].y; | |
996 *(__int16 *)((char *)a5a + (int)(char *)a3 - (char *)a4) = a6->pXInterceptDisplacements[v12 + 1] | 998 *(__int16 *)((char *)a5a + (int)(char *)a3 - (char *)a4) = a6->pXInterceptDisplacements[v12 + 1] |
997 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v11] | 999 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v11] |
998 + 12 * a6->pVertexIDs[v12 + 1]); | 1000 // + 12 * a6->pVertexIDs[v12 + 1]); |
1001 + pOutdoor->pBModels[v11].pVertices.pVertices[a6->pVertexIDs[v12+1]].x; | |
999 v13 = a6->pYInterceptDisplacements[v12 + 1] | 1002 v13 = a6->pYInterceptDisplacements[v12 + 1] |
1000 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v11] + 12 * a6->pVertexIDs[v12 + 1] + 4); | 1003 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v11] + 12 * a6->pVertexIDs[v12 + 1] + 4); |
1004 + pOutdoor->pBModels[v11].pVertices.pVertices[a6->pVertexIDs[v12 + 1]].y; | |
1001 v14 = a5a; | 1005 v14 = a5a; |
1002 ++a1a; | 1006 ++a1a; |
1003 a5a += 2; | 1007 a5a += 2; |
1004 *v14 = v13; | 1008 *v14 = v13; |
1005 } | 1009 } |
1018 a5b = a4 + 1; | 1022 a5b = a4 + 1; |
1019 do | 1023 do |
1020 { | 1024 { |
1021 v16 = a1a; | 1025 v16 = a1a; |
1022 a3[2 * a1a] = a6->pXInterceptDisplacements[a1a] | 1026 a3[2 * a1a] = a6->pXInterceptDisplacements[a1a] |
1023 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v15] + 12 * a6->pVertexIDs[a1a]); | 1027 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v15] + 12 * a6->pVertexIDs[a1a]); |
1028 + pOutdoor->pBModels[v15].pVertices.pVertices[a6->pVertexIDs[a1a]].x; | |
1024 *(a5b - 1) = a6->pZInterceptDisplacements[v16] | 1029 *(a5b - 1) = a6->pZInterceptDisplacements[v16] |
1025 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v15] + 12 * a6->pVertexIDs[v16] + 8); | 1030 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v15] + 12 * a6->pVertexIDs[v16] + 8); |
1026 *(__int16 *)((char *)a5b + (int)a3 - (int)a4) = a6->pXInterceptDisplacements[v16 + 1] | 1031 + pOutdoor->pBModels[v15].pVertices.pVertices[a6->pVertexIDs[v16]].y; |
1027 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v15] | 1032 *(__int16 *)((char *)a5b + (int)a3 - (int)a4) = a6->pXInterceptDisplacements[v16 + 1] |
1028 + 12 * a6->pVertexIDs[v16 + 1]); | 1033 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v15] |
1034 // + 12 * a6->pVertexIDs[v16 + 1]); | |
1035 + pOutdoor->pBModels[v15].pVertices.pVertices[a6->pVertexIDs[v16+1]].x; | |
1029 v17 = a6->pZInterceptDisplacements[v16 + 1] | 1036 v17 = a6->pZInterceptDisplacements[v16 + 1] |
1030 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v15] + 12 * a6->pVertexIDs[v16 + 1] + 8); | 1037 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v15] + 12 * a6->pVertexIDs[v16 + 1] + 8); |
1038 + pOutdoor->pBModels[v15].pVertices.pVertices[a6->pVertexIDs[v16+1]].z; | |
1031 v18 = a5b; | 1039 v18 = a5b; |
1032 ++a1a; | 1040 ++a1a; |
1033 a5b += 2; | 1041 a5b += 2; |
1034 *v18 = v17; | 1042 *v18 = v17; |
1035 } | 1043 } |
1046 a5c = a4 + 1; | 1054 a5c = a4 + 1; |
1047 do | 1055 do |
1048 { | 1056 { |
1049 v20 = a1a; | 1057 v20 = a1a; |
1050 a3[2 * a1a] = a6->pYInterceptDisplacements[a1a] | 1058 a3[2 * a1a] = a6->pYInterceptDisplacements[a1a] |
1051 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v19] + 12 * a6->pVertexIDs[a1a] + 4); | 1059 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v19] + 12 * a6->pVertexIDs[a1a] + 4); |
1060 + pOutdoor->pBModels[v19].pVertices.pVertices[a6->pVertexIDs[a1a]].y; | |
1052 *(a5c - 1) = a6->pZInterceptDisplacements[v20] | 1061 *(a5c - 1) = a6->pZInterceptDisplacements[v20] |
1053 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v19] + 12 * a6->pVertexIDs[v20] + 8); | 1062 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v19] + 12 * a6->pVertexIDs[v20] + 8); |
1063 + pOutdoor->pBModels[v19].pVertices.pVertices[a6->pVertexIDs[a1a]].z; | |
1054 *(__int16 *)((char *)a5c + (int)(char *)a3 - (char *)a4) = a6->pYInterceptDisplacements[v20 + 1] | 1064 *(__int16 *)((char *)a5c + (int)(char *)a3 - (char *)a4) = a6->pYInterceptDisplacements[v20 + 1] |
1055 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v19] | 1065 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v19] |
1056 + 12 * a6->pVertexIDs[v20 + 1] | 1066 // + 12 * a6->pVertexIDs[v20 + 1] |
1057 + 4); | 1067 // + 4); |
1058 v21 = a6->pZInterceptDisplacements[v20 + 1] | 1068 + pOutdoor->pBModels[v19].pVertices.pVertices[a6->pVertexIDs[v20+1]].y; |
1059 + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v19] + 12 * a6->pVertexIDs[v20 + 1] + 8); | 1069 v21 = a6->pZInterceptDisplacements[v20 + 1] |
1070 // + *(short *)(*(int *)&pOutdoor->pBModels->pModelName[v19] + 12 * a6->pVertexIDs[v20 + 1] + 8); | |
1071 + pOutdoor->pBModels[v19].pVertices.pVertices[a6->pVertexIDs[v20+1]].z; | |
1060 v22 = a5c; | 1072 v22 = a5c; |
1061 ++a1a; | 1073 ++a1a; |
1062 a5c += 2; | 1074 a5c += 2; |
1063 *v22 = v21; | 1075 *v22 = v21; |
1064 } | 1076 } |