Mercurial > mm7
comparison stru6.cpp @ 142:8b8fd4d83fdc
Various things here and there
author | Nomad |
---|---|
date | Tue, 12 Feb 2013 06:28:08 +0200 |
parents | 9c0607679772 |
children | 8ab4484c22e0 |
comparison
equal
deleted
inserted
replaced
141:cca78efb377e | 142:8b8fd4d83fdc |
---|---|
593 this->array_0[a2->field_54 & 0x1F].flt_C = (double)a2->vPosition.z; | 593 this->array_0[a2->field_54 & 0x1F].flt_C = (double)a2->vPosition.z; |
594 } | 594 } |
595 } | 595 } |
596 | 596 |
597 //----- (004A7E89) -------------------------------------------------------- | 597 //----- (004A7E89) -------------------------------------------------------- |
598 int stru6::_4A7E89_sparkles_on_actor_after_it_casts_buff(Actor *pActor, unsigned int uDiffuse) | 598 void stru6::_4A7E89_sparkles_on_actor_after_it_casts_buff(Actor *pActor, unsigned int uDiffuse) |
599 { | 599 { |
600 Actor *v3; // edi@1 | 600 Actor *v3; // edi@1 |
601 int v4; // ebx@3 | 601 int v4; // ebx@3 |
602 int result; // eax@5 | 602 //int result; // eax@5 |
603 Particle_ Dst; // [sp+Ch] [bp-6Ch]@1 | 603 Particle_ Dst; // [sp+Ch] [bp-6Ch]@1 |
604 int v7; // [sp+74h] [bp-4h]@2 | 604 int v7; // [sp+74h] [bp-4h]@2 |
605 signed int pActora; // [sp+80h] [bp+8h]@1 | 605 signed int pActora; // [sp+80h] [bp+8h]@1 |
606 | 606 |
607 memset(&Dst, 0, 0x68u); | 607 memset(&Dst, 0, 0x68u); |
630 } | 630 } |
631 pGame->pParticleEngine->AddParticle(&Dst); | 631 pGame->pParticleEngine->AddParticle(&Dst); |
632 --pActora; | 632 --pActora; |
633 } | 633 } |
634 while ( pActora ); | 634 while ( pActora ); |
635 return result; | |
636 } | 635 } |
637 | 636 |
638 //----- (004A7F74) -------------------------------------------------------- | 637 //----- (004A7F74) -------------------------------------------------------- |
639 void stru6::_4A7F74(int x, int y, int z) | 638 void stru6::_4A7F74(int x, int y, int z) |
640 { | 639 { |
1631 *(int *)v2 = v3; | 1630 *(int *)v2 = v3; |
1632 if ( (unsigned __int8)(v5 ^ v6) | v4 ) | 1631 if ( (unsigned __int8)(v5 ^ v6) | v4 ) |
1633 { | 1632 { |
1634 v7 = pIconsFrameTable->GetFrame(*((int *)v2 + 2), v3); | 1633 v7 = pIconsFrameTable->GetFrame(*((int *)v2 + 2), v3); |
1635 pRenderer->DrawTextureTransparent(*v1, 0x181u, &pIcons_LOD->pTextures[v7->uTextureID]); | 1634 pRenderer->DrawTextureTransparent(*v1, 0x181u, &pIcons_LOD->pTextures[v7->uTextureID]); |
1636 pOtherOverlayList->field_3EC = 1; | 1635 pOtherOverlayList->bRedraw = true; |
1637 } | 1636 } |
1638 else | 1637 else |
1639 { | 1638 { |
1640 *((short *)v2 - 2) = 0; | 1639 *((short *)v2 - 2) = 0; |
1641 } | 1640 } |