Mercurial > mm7
comparison Render.cpp @ 143:b099dd069171
.
author | Nomad |
---|---|
date | Tue, 12 Feb 2013 06:29:34 +0200 |
parents | 8b8fd4d83fdc |
children | 8ab4484c22e0 d92c78ab54fe |
comparison
equal
deleted
inserted
replaced
142:8b8fd4d83fdc | 143:b099dd069171 |
---|---|
2937 | 2937 |
2938 //----- (0047BACF) -------------------------------------------------------- | 2938 //----- (0047BACF) -------------------------------------------------------- |
2939 void Render::TransformBillboardsAndSetPalettesODM() | 2939 void Render::TransformBillboardsAndSetPalettesODM() |
2940 { | 2940 { |
2941 //int v0; // edi@1 | 2941 //int v0; // edi@1 |
2942 //char *v1; // esi@2 | 2942 char *v1; // esi@2 |
2943 unsigned int v2; // edx@3 | 2943 unsigned int v2; // edx@3 |
2944 int v3; // eax@3 | 2944 int v3; // eax@3 |
2945 int v4; // edi@3 | 2945 int v4; // edi@3 |
2946 int v5; // eax@3 | 2946 int v5; // eax@3 |
2947 __int16 v6; // di@3 | 2947 __int16 v6; // di@3 |
2970 pOutdoorCamera->uNumBillboards = uNumBillboardsToDraw; | 2970 pOutdoorCamera->uNumBillboards = uNumBillboardsToDraw; |
2971 | 2971 |
2972 //v16 = 0; | 2972 //v16 = 0; |
2973 for (int i = 0; i < uNumBillboardsToDraw; ++i) | 2973 for (int i = 0; i < uNumBillboardsToDraw; ++i) |
2974 { | 2974 { |
2975 auto pBillboard = pBillboardRenderList + i; | |
2975 v17 = 0; | 2976 v17 = 0; |
2976 v1 = (char *)&pBillboardRenderList[0].uScreenSpaceY; | 2977 v1 = (char *)&pBillboardRenderList[i].uScreenSpaceY; |
2977 //do | 2978 //do |
2978 //{ | 2979 //{ |
2979 billboard.uScreenSpaceX = *((short *)v1 - 1); | 2980 billboard.uScreenSpaceX = pBillboard->uScreenSpaceX; |
2980 v2 = *((short *)v1 - 5); | 2981 v2 = *((short *)v1 - 5); |
2981 billboard.uScreenSpaceY = *(short *)v1; | 2982 billboard.uScreenSpaceY = pBillboard->uScreenSpaceY; |
2982 v3 = *((int *)v1 - 10); | 2983 v3 = *((int *)v1 - 10); |
2983 billboard.uParentBillboardID = i; | 2984 billboard.uParentBillboardID = i; |
2984 v4 = *((int *)v1 + 1); | 2985 v4 = *((int *)v1 + 1); |
2985 billboard.field_10 = v3; | 2986 billboard.field_10 = v3; |
2986 v5 = *((int *)v1 - 9); | 2987 v5 = *((int *)v1 - 9); |