comparison Arcomage.cpp @ 1241:ae812777b1d4

fix in arcomagecards
author Gloval
date Mon, 10 Jun 2013 00:09:21 +0400
parents 85bdbaa539f4
children e161d8a5a529
comparison
equal deleted inserted replaced
1219:85bdbaa539f4 1241:ae812777b1d4
2266 2266
2267 pTargetXY.x = 555; 2267 pTargetXY.x = 555;
2268 pTargetXY.y = 13; 2268 pTargetXY.y = 13;
2269 Blt_Chroma(&pSrcRect, &pTargetXY, pArcomageGame->field_54, 2); 2269 Blt_Chroma(&pSrcRect, &pTargetXY, pArcomageGame->field_54, 2);
2270 2270
2271 //tower heigth rectangle 2271 //tower height rectangle
2272 pSrcRect.left = 234; 2272 pSrcRect.left = 234;
2273 pSrcRect.right = 283; 2273 pSrcRect.right = 283;
2274 pSrcRect.top = 166; 2274 pSrcRect.top = 166;
2275 pSrcRect.bottom = 190; 2275 pSrcRect.bottom = 190;
2276 pTargetXY.x = 100; 2276 pTargetXY.x = 100;
2279 2279
2280 pTargetXY.x = 492; 2280 pTargetXY.x = 492;
2281 pTargetXY.y = 296; 2281 pTargetXY.y = 296;
2282 Blt_Chroma(&pSrcRect, &pTargetXY, pArcomageGame->field_54, 2); 2282 Blt_Chroma(&pSrcRect, &pTargetXY, pArcomageGame->field_54, 2);
2283 2283
2284 //wall heigth rectangle 2284 //wall height rectangle
2285 pSrcRect.left = 192; 2285 pSrcRect.left = 192;
2286 pSrcRect.right = 234; 2286 pSrcRect.right = 234;
2287 pSrcRect.top = 166; 2287 pSrcRect.top = 166;
2288 pSrcRect.bottom = 190; 2288 pSrcRect.bottom = 190;
2289 pTargetXY.x = 168; 2289 pTargetXY.x = 168;
2702 v24 = (640 - 96 * v0) / (v0 + 1); 2702 v24 = (640 - 96 * v0) / (v0 + 1);
2703 pTargetXY.x = (640 - 96 * v0) / (v0 + 1); 2703 pTargetXY.x = (640 - 96 * v0) / (v0 + 1);
2704 while ( v2 < v0 ) 2704 while ( v2 < v0 )
2705 { 2705 {
2706 v3 = current_player_num; 2706 v3 = current_player_num;
2707 if ( am_byte_4E185D != 0 ) 2707 if ( am_byte_4E185D)
2708 { 2708 {
2709 2709
2710 pTargetXY.x += am_Players[current_player_num].arr_6C[v2].field_0 ; 2710 pTargetXY.x += am_Players[current_player_num].arr_6C[v2].field_0 ;
2711 pTargetXY.y += am_Players[current_player_num].arr_6C[v2].field_4; 2711 pTargetXY.y += am_Players[current_player_num].arr_6C[v2].field_4;
2712 } 2712 }
2738 } 2738 }
2739 LABEL_13: 2739 LABEL_13:
2740 v3 = current_player_num; 2740 v3 = current_player_num;
2741 pTargetXY.x += v24 + 96; 2741 pTargetXY.x += v24 + 96;
2742 LABEL_15: 2742 LABEL_15:
2743 if ( am_byte_4E185D != 0 ) 2743 if ( am_byte_4E185D )
2744 { 2744 {
2745 pTargetXY.x -= am_Players[current_player_num].arr_6C[v2].field_0 ; 2745 pTargetXY.x -= am_Players[current_player_num].arr_6C[v2].field_0 ;
2746 pTargetXY.y -= am_Players[current_player_num].arr_6C[v2].field_4 ; 2746 pTargetXY.y -= am_Players[current_player_num].arr_6C[v2].field_4 ;
2747 } 2747 }
2748 ++v2; 2748 ++v2;
3056 } 3056 }
3057 3057
3058 //----- (0040BB67) -------------------------------------------------------- 3058 //----- (0040BB67) --------------------------------------------------------
3059 signed int DrawCardsRectangles( int player_num ) 3059 signed int DrawCardsRectangles( int player_num )
3060 { 3060 {
3061 3061 //need do fix rectangle not fit to card
3062 3062
3063 //int v1; // esi@1 3063 //int v1; // esi@1
3064 signed int result; // eax@1 3064 signed int result; // eax@1
3065 int v3; // ebx@1 3065 int v3; // ebx@1
3066 char v4; // zf@1 3066 char v4; // zf@1