Mercurial > mm7
diff mm7_6.cpp @ 888:abf7b7d2c8f7
small fixes
author | zipi |
---|---|
date | Tue, 02 Apr 2013 22:01:18 +0100 |
parents | 4de9c65baa39 |
children | 279a315ff122 |
line wrap: on
line diff
--- a/mm7_6.cpp Tue Apr 02 20:54:41 2013 +0100 +++ b/mm7_6.cpp Tue Apr 02 22:01:18 2013 +0100 @@ -1190,7 +1190,7 @@ //----- (00426947) -------------------------------------------------------- void __cdecl sub_426947() { - dword_50C968 = 0; + stru_50C198.field_0[500] = 0; dword_50C994 = 0; dword_50C998_turnbased_icon_1A = 0; } @@ -2449,7 +2449,7 @@ Player *v17; // esi@70 //int v18; // eax@72 //int v19; // eax@74 - char *v20; // eax@74 + Player *v20; // eax@74 signed int i; // esi@76 //int v22; // eax@88 __int16 v23; // ax@88 @@ -3364,8 +3364,8 @@ a1.field_60_distance_related_prolly_lod = LOBYTE(v715.uDistance); a1.uFacing = LOWORD(v715.uYawAngle); a1.uSoundID = LOWORD(v3->sound_id); - v20 = (char *)&pParty->pPlayers[v3->uPlayerID]; - memcpy(&a1.stru_24, &v20[36 * *((int *)v20 + 1620) + 496], sizeof(a1.stru_24)); + v20 = &pParty->pPlayers[v3->uPlayerID]; + memcpy(&a1.stru_24, &v20[v20->pEquipment.uBow], sizeof(a1.stru_24)); a1.uAttributes = 256; if ( pParty->bTurnBasedModeOn == 1 ) a1.uAttributes = 260;