Mercurial > mm7
comparison mm7_6.cpp @ 888:abf7b7d2c8f7
small fixes
author | zipi |
---|---|
date | Tue, 02 Apr 2013 22:01:18 +0100 |
parents | 4de9c65baa39 |
children | 279a315ff122 |
comparison
equal
deleted
inserted
replaced
887:4de9c65baa39 | 888:abf7b7d2c8f7 |
---|---|
1188 } | 1188 } |
1189 | 1189 |
1190 //----- (00426947) -------------------------------------------------------- | 1190 //----- (00426947) -------------------------------------------------------- |
1191 void __cdecl sub_426947() | 1191 void __cdecl sub_426947() |
1192 { | 1192 { |
1193 dword_50C968 = 0; | 1193 stru_50C198.field_0[500] = 0; |
1194 dword_50C994 = 0; | 1194 dword_50C994 = 0; |
1195 dword_50C998_turnbased_icon_1A = 0; | 1195 dword_50C998_turnbased_icon_1A = 0; |
1196 } | 1196 } |
1197 // 50C968: using guessed type int dword_50C968; | 1197 // 50C968: using guessed type int dword_50C968; |
1198 // 50C994: using guessed type int dword_50C994; | 1198 // 50C994: using guessed type int dword_50C994; |
2447 //unsigned int v15; // edx@53 | 2447 //unsigned int v15; // edx@53 |
2448 //signed int v16; // eax@53 | 2448 //signed int v16; // eax@53 |
2449 Player *v17; // esi@70 | 2449 Player *v17; // esi@70 |
2450 //int v18; // eax@72 | 2450 //int v18; // eax@72 |
2451 //int v19; // eax@74 | 2451 //int v19; // eax@74 |
2452 char *v20; // eax@74 | 2452 Player *v20; // eax@74 |
2453 signed int i; // esi@76 | 2453 signed int i; // esi@76 |
2454 //int v22; // eax@88 | 2454 //int v22; // eax@88 |
2455 __int16 v23; // ax@88 | 2455 __int16 v23; // ax@88 |
2456 //int v24; // ecx@93 | 2456 //int v24; // ecx@93 |
2457 //int v25; // ecx@94 | 2457 //int v25; // ecx@94 |
3362 a1.spell_caster_pid = PID(OBJECT_Player, v3->uPlayerID); | 3362 a1.spell_caster_pid = PID(OBJECT_Player, v3->uPlayerID); |
3363 a1.spell_target_pid = a2; | 3363 a1.spell_target_pid = a2; |
3364 a1.field_60_distance_related_prolly_lod = LOBYTE(v715.uDistance); | 3364 a1.field_60_distance_related_prolly_lod = LOBYTE(v715.uDistance); |
3365 a1.uFacing = LOWORD(v715.uYawAngle); | 3365 a1.uFacing = LOWORD(v715.uYawAngle); |
3366 a1.uSoundID = LOWORD(v3->sound_id); | 3366 a1.uSoundID = LOWORD(v3->sound_id); |
3367 v20 = (char *)&pParty->pPlayers[v3->uPlayerID]; | 3367 v20 = &pParty->pPlayers[v3->uPlayerID]; |
3368 memcpy(&a1.stru_24, &v20[36 * *((int *)v20 + 1620) + 496], sizeof(a1.stru_24)); | 3368 memcpy(&a1.stru_24, &v20[v20->pEquipment.uBow], sizeof(a1.stru_24)); |
3369 a1.uAttributes = 256; | 3369 a1.uAttributes = 256; |
3370 if ( pParty->bTurnBasedModeOn == 1 ) | 3370 if ( pParty->bTurnBasedModeOn == 1 ) |
3371 a1.uAttributes = 260; | 3371 a1.uAttributes = 260; |
3372 for ( i = 0; i < (signed int)_this; ++i ) | 3372 for ( i = 0; i < (signed int)_this; ++i ) |
3373 { | 3373 { |