comparison SpriteObject.cpp @ 619:574cc56e05e9

ParticleEngine crash in temple
author Nomad
date Fri, 08 Mar 2013 17:08:08 +0200
parents cb0ad52d6a26
children d5473972234d
comparison
equal deleted inserted replaced
618:5cfb5dadf330 619:574cc56e05e9
219 const char *v47; // [sp-8h] [bp-B0h]@83 219 const char *v47; // [sp-8h] [bp-B0h]@83
220 enum TEXTURE_TYPE v48; // [sp-4h] [bp-ACh]@46 220 enum TEXTURE_TYPE v48; // [sp-4h] [bp-ACh]@46
221 int v49; // [sp+Ch] [bp-9Ch]@52 221 int v49; // [sp+Ch] [bp-9Ch]@52
222 int v50; // [sp+10h] [bp-98h]@52 222 int v50; // [sp+10h] [bp-98h]@52
223 Vec3_int_ v51; // [sp+14h] [bp-94h]@11 223 Vec3_int_ v51; // [sp+14h] [bp-94h]@11
224 Particle_ Dst; // [sp+20h] [bp-88h]@45 224 Particle_sw Dst; // [sp+20h] [bp-88h]@45
225 unsigned int uLayingItemID_; // [sp+88h] [bp-20h]@1 225 unsigned int uLayingItemID_; // [sp+88h] [bp-20h]@1
226 int v54; // [sp+8Ch] [bp-1Ch]@1 226 int v54; // [sp+8Ch] [bp-1Ch]@1
227 int v55; // [sp+90h] [bp-18h]@1 227 int v55; // [sp+90h] [bp-18h]@1
228 int v56; // [sp+94h] [bp-14h]@11 228 int v56; // [sp+94h] [bp-14h]@11
229 int v57; // [sp+98h] [bp-10h]@1 229 int v57; // [sp+98h] [bp-10h]@1
322 Dst.flt_10 = 0.0; 322 Dst.flt_10 = 0.0;
323 Dst.flt_14 = 0.0; 323 Dst.flt_14 = 0.0;
324 Dst.flt_18 = 0.0; 324 Dst.flt_18 = 0.0;
325 if ( HIBYTE(v23) & 2 ) 325 if ( HIBYTE(v23) & 2 )
326 { 326 {
327 Dst.bFree = 1036; 327 Dst.type = ParticleType_Bitmap | ParticleType_Rotating | ParticleType_8;
328 Dst.uDiffuse = 16727070; 328 Dst.uDiffuse = 0xFF3C1E;
329 v24 = rand(); 329 v24 = rand();
330 v48 = (TEXTURE_TYPE)0; 330 v48 = (TEXTURE_TYPE)0;
331 LABEL_83: 331 LABEL_83:
332 v47 = "effpar01"; 332 v47 = "effpar01";
333 } 333 }
334 else 334 else
335 { 335 {
336 if ( HIBYTE(v23) & 4 ) 336 if ( HIBYTE(v23) & 4 )
337 { 337 {
338 Dst.bFree = 512; 338 Dst.type = ParticleType_Line;
339 Dst.uDiffuse = rand(); 339 Dst.uDiffuse = rand();
340 Dst.timeToLive = 64; 340 Dst.timeToLive = 64;
341 Dst.uTextureID = 0; 341 Dst.uTextureID = 0;
342 LABEL_89: 342 LABEL_89:
343 Dst.flt_28 = 1.0; 343 Dst.flt_28 = 1.0;
344 pGame->pParticleEngine->AddParticle(&Dst); 344 pGame->pParticleEngine->AddParticle(&Dst);
345 return; 345 return;
346 } 346 }
347 Dst.bFree = 1032; 347 Dst.type = ParticleType_Bitmap | ParticleType_8;
348 Dst.uDiffuse = rand(); 348 Dst.uDiffuse = rand();
349 v24 = rand(); 349 v24 = rand();
350 v48 = (TEXTURE_TYPE)0; 350 v48 = (TEXTURE_TYPE)0;
351 LABEL_87: 351 LABEL_87:
352 v47 = "effpar03"; 352 v47 = "effpar03";
462 Dst.flt_10 = 0.0; 462 Dst.flt_10 = 0.0;
463 Dst.flt_14 = 0.0; 463 Dst.flt_14 = 0.0;
464 Dst.flt_18 = 0.0; 464 Dst.flt_18 = 0.0;
465 if ( HIBYTE(v45) & 2 ) 465 if ( HIBYTE(v45) & 2 )
466 { 466 {
467 Dst.bFree = 1036; 467 Dst.type = ParticleType_Bitmap | ParticleType_Rotating | ParticleType_8;
468 Dst.uDiffuse = 16727070; 468 Dst.uDiffuse = 0xFF3C1E;
469 v24 = rand(); 469 v24 = rand();
470 v48 = (TEXTURE_TYPE)0; 470 v48 = (TEXTURE_TYPE)0;
471 goto LABEL_83; 471 goto LABEL_83;
472 } 472 }
473 if ( HIBYTE(v45) & 4 ) 473 if ( HIBYTE(v45) & 4 )
474 { 474 {
475 Dst.bFree = 512; 475 Dst.type = ParticleType_Line;
476 v46 = rand(); 476 v46 = rand();
477 Dst.uTextureID = 0; 477 Dst.uTextureID = 0;
478 Dst.uDiffuse = v46; 478 Dst.uDiffuse = v46;
479 Dst.timeToLive = 64; 479 Dst.timeToLive = 64;
480 goto LABEL_89; 480 goto LABEL_89;
481 } 481 }
482 Dst.bFree = 1032; 482 Dst.type = ParticleType_Bitmap | ParticleType_8;
483 Dst.uDiffuse = rand(); 483 Dst.uDiffuse = rand();
484 v24 = rand(); 484 v24 = rand();
485 v48 = (TEXTURE_TYPE)0; 485 v48 = (TEXTURE_TYPE)0;
486 goto LABEL_87; 486 goto LABEL_87;
487 } 487 }
626 char v30; // al@68 626 char v30; // al@68
627 const char *v31; // [sp-8h] [bp-98h]@19 627 const char *v31; // [sp-8h] [bp-98h]@19
628 const char *v32; // [sp-8h] [bp-98h]@68 628 const char *v32; // [sp-8h] [bp-98h]@68
629 enum TEXTURE_TYPE v33; // [sp-4h] [bp-94h]@19 629 enum TEXTURE_TYPE v33; // [sp-4h] [bp-94h]@19
630 enum TEXTURE_TYPE v34; // [sp-4h] [bp-94h]@68 630 enum TEXTURE_TYPE v34; // [sp-4h] [bp-94h]@68
631 Particle_ Dst; // [sp+Ch] [bp-84h]@18 631 Particle_sw Dst; // [sp+Ch] [bp-84h]@18
632 unsigned int uLayingItemID_; // [sp+74h] [bp-1Ch]@1 632 unsigned int uLayingItemID_; // [sp+74h] [bp-1Ch]@1
633 ObjectDesc *v37; // [sp+78h] [bp-18h]@1 633 ObjectDesc *v37; // [sp+78h] [bp-18h]@1
634 unsigned int uFaceID; // [sp+7Ch] [bp-14h]@4 634 unsigned int uFaceID; // [sp+7Ch] [bp-14h]@4
635 int v39; // [sp+80h] [bp-10h]@33 635 int v39; // [sp+80h] [bp-10h]@33
636 Actor *v39b; 636 Actor *v39b;
747 Dst.flt_10 = 0.0; 747 Dst.flt_10 = 0.0;
748 Dst.flt_14 = 0.0; 748 Dst.flt_14 = 0.0;
749 Dst.flt_18 = 0.0; 749 Dst.flt_18 = 0.0;
750 if ( v29 & 0x200 ) 750 if ( v29 & 0x200 )
751 { 751 {
752 Dst.bFree = 1036; 752 Dst.type = ParticleType_Bitmap | ParticleType_Rotating | ParticleType_8;
753 Dst.uDiffuse = 0xFF3C1Eu; 753 Dst.uDiffuse = 0xFF3C1E;
754 v30 = rand(); 754 v30 = rand();
755 v34 = (TEXTURE_TYPE)v8; 755 v34 = (TEXTURE_TYPE)v8;
756 v32 = "effpar01"; 756 v32 = "effpar01";
757 } 757 }
758 else 758 else
759 { 759 {
760 if ( v29 & 0x400 ) 760 if ( v29 & 0x400 )
761 goto LABEL_70; 761 goto LABEL_70;
762 Dst.bFree = 1032; 762 Dst.type = ParticleType_Bitmap | ParticleType_8;
763 Dst.uDiffuse = rand(); 763 Dst.uDiffuse = rand();
764 v30 = rand(); 764 v30 = rand();
765 v34 = (TEXTURE_TYPE)v8; 765 v34 = (TEXTURE_TYPE)v8;
766 v32 = "effpar03"; 766 v32 = "effpar03";
767 } 767 }
923 Dst.flt_10 = 0.0; 923 Dst.flt_10 = 0.0;
924 Dst.flt_14 = 0.0; 924 Dst.flt_14 = 0.0;
925 Dst.flt_18 = 0.0; 925 Dst.flt_18 = 0.0;
926 if ( v10 & 0x200 ) 926 if ( v10 & 0x200 )
927 { 927 {
928 Dst.bFree = 1036; 928 Dst.type = ParticleType_Bitmap | ParticleType_Rotating | ParticleType_8;
929 Dst.uDiffuse = 0xFF3C1Eu; 929 Dst.uDiffuse = 0xFF3C1E;
930 Dst.flt_28 = 1.0; 930 Dst.flt_28 = 1.0;
931 v11 = rand(); 931 v11 = rand();
932 v33 = (TEXTURE_TYPE)v8; 932 v33 = (TEXTURE_TYPE)v8;
933 v31 = "effpar01"; 933 v31 = "effpar01";
934 } 934 }
935 else 935 else
936 { 936 {
937 if ( v10 & 0x400 ) 937 if ( v10 & 0x400 )
938 { 938 {
939 LABEL_70: 939 LABEL_70:
940 Dst.bFree = 512; 940 Dst.type = ParticleType_Line;
941 Dst.uDiffuse = rand(); 941 Dst.uDiffuse = rand();
942 Dst.timeToLive = 64; 942 Dst.timeToLive = 64;
943 Dst.uTextureID = v8; 943 Dst.uTextureID = v8;
944 LABEL_71: 944 LABEL_71:
945 Dst.flt_28 = 1.0; 945 Dst.flt_28 = 1.0;
946 goto LABEL_72; 946 goto LABEL_72;
947 } 947 }
948 Dst.bFree = 1032; 948 Dst.type = ParticleType_Bitmap | ParticleType_8;
949 Dst.uDiffuse = rand(); 949 Dst.uDiffuse = rand();
950 Dst.flt_28 = 1.0; 950 Dst.flt_28 = 1.0;
951 v11 = rand(); 951 v11 = rand();
952 v33 = (TEXTURE_TYPE)v8; 952 v33 = (TEXTURE_TYPE)v8;
953 v31 = "effpar03"; 953 v31 = "effpar03";