Mercurial > might-and-magic-trilogy
diff DecalBuilder.cpp @ 2:2ca04ccb612a
NoCD, main menu, various
author | Nomad |
---|---|
date | Wed, 10 Oct 2012 14:21:15 +0200 |
parents | 8b8875f5b359 |
children | be2066176d89 |
line wrap: on
line diff
--- a/DecalBuilder.cpp Tue Oct 09 13:09:08 2012 +0200 +++ b/DecalBuilder.cpp Wed Oct 10 14:21:15 2012 +0200 @@ -73,24 +73,28 @@ //----- (0049B490) -------------------------------------------------------- bool DecalBuilder::AddBloodsplat(float x, float y, float z, float r, float g, float b, float radius, int a8, int a9) { - double v10; // ST1C_8@1 + //double v10; // ST1C_8@1 char v11; // ST24_1@1 - double v12; // ST1C_8@1 - double v13; // ST1C_8@1 + //double v12; // ST1C_8@1 + //double v13; // ST1C_8@1 int a7a; // [sp+40h] [bp+18h]@1 - float arg14a; // [sp+44h] [bp+1Ch]@1 - float arg14b; // [sp+44h] [bp+1Ch]@1 - float arg14c; // [sp+44h] [bp+1Ch]@1 + //float arg14a; // [sp+44h] [bp+1Ch]@1 + //float arg14b; // [sp+44h] [bp+1Ch]@1 + //float arg14c; // [sp+44h] [bp+1Ch]@1 - arg14a = b * 255.0; + /*arg14a = b * 255.0; v10 = arg14a + 6.7553994e15; v11 = LOBYTE(v10); arg14b = g * 255.0; v12 = arg14b + 6.7553994e15; a7a = LODWORD(v12); arg14c = r * 255.0; - v13 = arg14c + 6.7553994e15; - return pBloodsplatContainer->AddBloodsplat(x, y, z, radius, SLOBYTE(v13), a7a, v11); + v13 = arg14c + 6.7553994e15;*/ + return pBloodsplatContainer->AddBloodsplat(x, y, z, radius, + //SLOBYTE(v13), a7a, v11); + r * 255.0f, + g * 255.0f, + b * 255.0f); } //----- (0049B525) --------------------------------------------------------