comparison DecalBuilder.cpp @ 2325:846e28e41fb4

for bloodsplat
author Ritor1
date Fri, 28 Mar 2014 12:32:18 +0600
parents 8e9be4fa33a8
children ddb803517a48
comparison
equal deleted inserted replaced
2324:b2e3ac05f2b3 2325:846e28e41fb4
242 //----- (0049B790) -------------------------------------------------------- 242 //----- (0049B790) --------------------------------------------------------
243 char DecalBuilder::_49B790_build_decal_geometry(int a2, char a3, Bloodsplat *a4, int a5, float a6, unsigned int uColorMultiplier, float a8, stru314 *a9, signed int a10, RenderVertexSoft *a11, char uClipFlags) 243 char DecalBuilder::_49B790_build_decal_geometry(int a2, char a3, Bloodsplat *a4, int a5, float a6, unsigned int uColorMultiplier, float a8, stru314 *a9, signed int a10, RenderVertexSoft *a11, char uClipFlags)
244 { 244 {
245 //DecalBuilder *v12; // esi@1 245 //DecalBuilder *v12; // esi@1
246 Decal *v13; // edi@2 246 Decal *v13; // edi@2
247 int *v14; // eax@2 247 //int *v14; // eax@2
248 //double v15; // st7@4 248 //double v15; // st7@4
249 //double v16; // st7@4 249 //double v16; // st7@4
250 //int v17; // eax@4 250 //int v17; // eax@4
251 //stru314 *v18; // ebx@4 251 //stru314 *v18; // ebx@4
252 //double v19; // st7@4 252 //double v19; // st7@4
278 278
279 //v12 = this; 279 //v12 = this;
280 if ( a6 == 0.0 ) 280 if ( a6 == 0.0 )
281 return 1; 281 return 1;
282 v13 = &this->std__vector_pDecals[this->field_308008]; 282 v13 = &this->std__vector_pDecals[this->field_308008];
283 v14 = &this->std__vector_pDecals[this->field_308008].field_C1C; 283 //v14 = &this->std__vector_pDecals[this->field_308008].field_C1C;
284 this->std__vector_pDecals[this->field_308008].field_C18 = (DecalBuilder_stru0 *)a4; 284 this->std__vector_pDecals[this->field_308008].field_C18 = (DecalBuilder_stru0 *)a4;
285 *v14 = 0; 285 this->std__vector_pDecals[this->field_308008].field_C1C = 0;
286 if ( a3 & 2 ) 286 if ( a3 & 2 )
287 *v14 = 1; 287 this->std__vector_pDecals[this->field_308008].field_C1C = 1;
288 //v15 = a6 - a8; 288 //v15 = a6 - a8;
289 this->field_30C028 = a6 - a8; 289 this->field_30C028 = a6 - a8;
290 //v16 = sqrt((a6 + a6 - this->field_30C028) * this->field_30C028); 290 //v16 = sqrt((a6 + a6 - this->field_30C028) * this->field_30C028);
291 this->field_30C02C = sqrt((a6 + a6 - this->field_30C028) * this->field_30C028); 291 this->field_30C02C = sqrt((a6 + a6 - this->field_30C028) * this->field_30C028);
292 //v17 = a5; 292 //v17 = a5;