Mercurial > mm7
comparison mm7_4.cpp @ 90:d61f6bc04bf2
more pointer fixes
author | zipi |
---|---|
date | Wed, 06 Feb 2013 22:32:43 +0000 |
parents | 98cd93e14777 |
children | b7ff791b1333 2fb33d31ca0d |
comparison
equal
deleted
inserted
replaced
89:98cd93e14777 | 90:d61f6bc04bf2 |
---|---|
14434 int v11; // eax@37 | 14434 int v11; // eax@37 |
14435 int v12; // eax@44 | 14435 int v12; // eax@44 |
14436 AIDirection a3; // [sp+4h] [bp-68h]@21 | 14436 AIDirection a3; // [sp+4h] [bp-68h]@21 |
14437 AIDirection v14; // [sp+20h] [bp-4Ch]@21 | 14437 AIDirection v14; // [sp+20h] [bp-4Ch]@21 |
14438 AIDirection v15; // [sp+3Ch] [bp-30h]@21 | 14438 AIDirection v15; // [sp+3Ch] [bp-30h]@21 |
14439 SpellBuff *v16; // [sp+58h] [bp-14h]@2 | 14439 Actor *v16; // [sp+58h] [bp-14h]@2 |
14440 int v17; // [sp+5Ch] [bp-10h]@6 | 14440 int v17; // [sp+5Ch] [bp-10h]@6 |
14441 stru262_TurnBased *v18; // [sp+60h] [bp-Ch]@1 | 14441 stru262_TurnBased *v18; // [sp+60h] [bp-Ch]@1 |
14442 int v19; // [sp+64h] [bp-8h]@8 | 14442 int v19; // [sp+64h] [bp-8h]@8 |
14443 unsigned int v20; // [sp+68h] [bp-4h]@1 | 14443 unsigned int v20; // [sp+68h] [bp-4h]@1 |
14444 | 14444 |
14446 v2 = 0; | 14446 v2 = 0; |
14447 v18 = v1; | 14447 v18 = v1; |
14448 v20 = 0; | 14448 v20 = 0; |
14449 if ( (signed int)uNumActors > 0 ) | 14449 if ( (signed int)uNumActors > 0 ) |
14450 { | 14450 { |
14451 v3 = pActors[0].pActorBuffs; | 14451 //v3 = pActors;//[0].pActorBuffs; |
14452 v16 = pActors[0].pActorBuffs; | 14452 v16 = pActors;//[0].pActorBuffs; |
14453 v3 = v16->pActorBuffs; | |
14453 do | 14454 do |
14454 { | 14455 { |
14455 v4 = (Actor *)((char *)&v3[-13] - 4); | 14456 v4 = v16; |
14456 if ( SHIDWORD(v3[3].uExpireTime) < v2 || SHIDWORD(v3[3].uExpireTime) <= v2 && LODWORD(v3[3].uExpireTime) <= v2 ) | 14457 if ( SHIDWORD(v3[3].uExpireTime) < v2 || SHIDWORD(v3[3].uExpireTime) <= v2 && LODWORD(v3[3].uExpireTime) <= v2 ) |
14457 v17 = v2; | 14458 v17 = v2; |
14458 else | 14459 else |
14459 v17 = 1; | 14460 v17 = 1; |
14460 v19 = v2; | 14461 v19 = v2; |
14461 do | 14462 do |
14514 } | 14515 } |
14515 } | 14516 } |
14516 } | 14517 } |
14517 } | 14518 } |
14518 ++v20; | 14519 ++v20; |
14519 v3 = (SpellBuff *)((char *)v16 + 836); | 14520 v3 = v16[1].pActorBuffs; |
14520 v16 = (SpellBuff *)((char *)v16 + 836); | 14521 ++v16; |
14521 } | 14522 } |
14522 while ( (signed int)v20 < (signed int)uNumActors ); | 14523 while ( (signed int)v20 < (signed int)uNumActors ); |
14523 } | 14524 } |
14524 if ( v1->field_4 == 1 ) | 14525 if ( v1->field_4 == 1 ) |
14525 { | 14526 { |