comparison mm7_5.cpp @ 921:3696848c0413

meteorite rain and other spells fix
author Ritor1
date Tue, 30 Apr 2013 20:08:42 +0600
parents 34ed2d5e7cfb
children 055ac998c606 a78f08dbeb88
comparison
equal deleted inserted replaced
920:34ed2d5e7cfb 921:3696848c0413
4542 SpriteObject *v4; // ebx@1 4542 SpriteObject *v4; // ebx@1
4543 //int v5; // edx@3 4543 //int v5; // edx@3
4544 //bool uPlayerID; // eax@3 4544 //bool uPlayerID; // eax@3
4545 //Player *pPlayer; // edi@4 4545 //Player *pPlayer; // edi@4
4546 Actor *pMonster; // esi@7 4546 Actor *pMonster; // esi@7
4547 SpriteObject *v9; // ebx@12 4547 //SpriteObject *v9; // ebx@12
4548 int v10; // eax@12 4548 int v10; // eax@12
4549 int v11; // ebx@12 4549 int v11; // ebx@12
4550 unsigned int v12; // ecx@12 4550 unsigned int v12; // ecx@12
4551 int v13; // edx@15 4551 int v13; // edx@15
4552 int v14; // edx@17 4552 int v14; // edx@17
4687 4687
4688 v19 = v4->spell_id == SPELL_DARK_SOULDRINKER; 4688 v19 = v4->spell_id == SPELL_DARK_SOULDRINKER;
4689 v61 = v4->field_60_distance_related_prolly_lod; 4689 v61 = v4->field_60_distance_related_prolly_lod;
4690 if ( !v19 ) 4690 if ( !v19 )
4691 { 4691 {
4692 v9 = (SpriteObject *)uDamageAmount; 4692 //v9 = (SpriteObject *)uDamageAmount;
4693 v50 = pParty->vPosition.x - *(int *)(uDamageAmount + 4); 4693 v50 = pParty->vPosition.x - v4->vPosition.x;
4694 //v55 = abs(v50); 4694 //v55 = abs(v50);
4695 pMonsterName = (char *)(pParty->vPosition.y - v9->vPosition.y); 4695 pMonsterName = (char *)(pParty->vPosition.y - v4->vPosition.y);
4696 //v51 = (unsigned __int64 *)abs((int)pMonsterName); 4696 //v51 = (unsigned __int64 *)abs((int)pMonsterName);
4697 pPlayerName = (char *)(pParty->vPosition.z - v9->vPosition.z); 4697 pPlayerName = (char *)(pParty->vPosition.z - v4->vPosition.z);
4698 v52 = abs((int)pPlayerName); 4698 v52 = abs((int)pPlayerName);
4699 v61 = abs(v50); 4699 v61 = abs(v50);
4700 v10 = abs(v50); 4700 v10 = abs(v50);
4701 v11 = (int)abs((int)pMonsterName); 4701 v11 = (int)abs((int)pMonsterName);
4702 v12 = v52; 4702 v12 = v52;
4727 } 4727 }
4728 else 4728 else
4729 { 4729 {
4730 v61 = 1; 4730 v61 = 1;
4731 } 4731 }
4732 v4 = (SpriteObject *)uDamageAmount; 4732 //v4 = (SpriteObject *)uDamageAmount;
4733 } 4733 }
4734 4734
4735 v15 = v4->spell_id; 4735 v15 = v4->spell_id;
4736 if ( v15 == SPELL_LASER_PROJECTILE ) 4736 if ( v15 == SPELL_LASER_PROJECTILE )
4737 { 4737 {