comparison mm7_2.cpp @ 438:17c90e543e28

Merge
author Nomad
date Sun, 24 Feb 2013 09:52:29 +0200
parents 0a1ea44b4a0a 4a42c2f97aa2
children 6b8118542175 acd8fa960c32 e5cf03a3d98e
comparison
equal deleted inserted replaced
437:0a1ea44b4a0a 438:17c90e543e28
7916 v2 = a1; 7916 v2 = a1;
7917 v3 = a2; 7917 v3 = a2;
7918 v4 = rand(); 7918 v4 = rand();
7919 v34 = 0; 7919 v34 = 0;
7920 v5 = v4 % 100; 7920 v5 = v4 % 100;
7921 v6 = 2 * (v2->Treasure_prob + 7 * v3->uIndex) - 14; 7921 // v6 = 2 * (v2->Treasure_prob + 7 * v3->uIndex) - 14;
7922 v7 = (unsigned __int8)byte_4E8168[v6 + 16]; 7922 v7 = (unsigned __int8)byte_4E8168[v3->uIndex-1][2*v2->Treasure_prob];
7923 v8 = (unsigned __int8)byte_4E8168[v6 + 17]; 7923 v8 = (unsigned __int8)byte_4E8168[v3->uIndex-1][2*v2->Treasure_prob+1];
7924 v32 = v5; 7924 v32 = v5;
7925 v33 = v7; 7925 v33 = v7;
7926 v9 = rand(); 7926 v9 = rand();
7927 v10 = v8 - v33 + 1; 7927 v10 = v8 - v33 + 1;
7928 v12 = v9; 7928 v12 = v9;
8094 do 8094 do
8095 { 8095 {
8096 if ( (v3->uItemID & 0x80000000u) == 0 ) 8096 if ( (v3->uItemID & 0x80000000u) == 0 )
8097 goto LABEL_56; 8097 goto LABEL_56;
8098 v4 = rand() % 5 + 1; 8098 v4 = rand() % 5 + 1;
8099 v5 = (unsigned __int8)byte_4E8168[2 * (v2->Treasure_prob + 7 * abs((int)v3->uItemID)) + 2]; 8099 v5 = (unsigned __int8)byte_4E8168[abs((int)v3->uItemID)-1][2*v2->Treasure_prob];//[2 * (v2->Treasure_prob + 7 * abs((int)v3->uItemID)) + 2];
8100 v6 = (unsigned __int8)byte_4E8168[2 * (v2->Treasure_prob + 7 * abs((int)v3->uItemID)) + 3]; 8100 v6 = (unsigned __int8)byte_4E8168[abs((int)v3->uItemID)-1][2*v2->Treasure_prob+1];//[2 * (v2->Treasure_prob + 7 * abs((int)v3->uItemID)) + 3];
8101 v7 = rand(); 8101 v7 = rand();
8102 v8 = v6 - v5 + 1; 8102 v8 = v6 - v5 + 1;
8103 v9 = v5 + v7 % v8; 8103 v9 = v5 + v7 % v8;
8104 v19 = v5 + v7 % v8; 8104 v19 = v5 + v7 % v8;
8105 if ( v9 < 7 ) 8105 if ( v9 < 7 )