Mercurial > mm7
diff mm7_3.cpp @ 35:aac67e0d2c10
uMovementSpeed = v9->uBaseSpe
author | Ritor1 |
---|---|
date | Sun, 20 Jan 2013 20:03:36 +0600 |
parents | a9e9c6989d04 |
children | 979f13f456dc |
line wrap: on
line diff
--- a/mm7_3.cpp Sun Jan 20 18:58:44 2013 +0600 +++ b/mm7_3.cpp Sun Jan 20 20:03:36 2013 +0600 @@ -18669,7 +18669,7 @@ unsigned int v10; // eax@1 size_t v11; // ebx@2 signed int v12; // esi@2 - char *v13;//Actor_uYawAngle_cr *v13; // ebx@3 + Actor *pActor;//Actor_uYawAngle_cr *v13; // ebx@3 AIDirection a3; // [sp+Ch] [bp-50h]@2 AIDirection v15; // [sp+28h] [bp-34h]@2 //SpawnPointMM7 v16; // [sp+44h] [bp-18h]@1 @@ -18696,16 +18696,14 @@ v12 = v11; if ( (signed int)v11 < (signed int)uNumActors ) { - v13 = (char *)&pActors[v11].uYawAngle; - do - { - ((Actor *)((char *)v13 - 154))->PrepareSprites(0); + + for ( pActor = &pActors[v11]; v12 < (signed int)uNumActors; ++pActor ) + { + pActor->PrepareSprites(0); ++v12; - *(short *)v13/*->uYawAngle*/ = LOWORD(v15.uYawAngle); - *(int *)(v13+666)/*->dword_000334_unique_name*/ = uUniqueName; - ++v13; - } - while ( v12 < (signed int)uNumActors ); + pActor->uYawAngle = v15.uYawAngle; + pActor->dword_000334_unique_name = uUniqueName; + } } } }