Mercurial > mm7
comparison Items.cpp @ 475:77430756f06a
fix show info item in shop
author | Gloval |
---|---|
date | Tue, 26 Feb 2013 08:47:23 +0400 |
parents | 7f1b00901cf7 |
children | 4bd56919f075 |
comparison
equal
deleted
inserted
replaced
474:442afd6c34a4 | 475:77430756f06a |
---|---|
128 }; | 128 }; |
129 | 129 |
130 unsigned __int16 shopMagicSpc_treasure_lvl[14] = {0, 2, 2, 3, 3, 5, 5, 4, 3, 3, 3, 3, 3, 3}; | 130 unsigned __int16 shopMagicSpc_treasure_lvl[14] = {0, 2, 2, 3, 3, 5, 5, 4, 3, 3, 3, 3, 3, 3}; |
131 unsigned __int16 shopAlchSpc_treasure_lvl[13] = {0, 2, 2, 3, 3, 4, 4, 5, 5, 3, 2, 2, 2}; | 131 unsigned __int16 shopAlchSpc_treasure_lvl[13] = {0, 2, 2, 3, 3, 4, 4, 5, 5, 3, 2, 2, 2}; |
132 | 132 |
133 int sub_4BE571(int a1, int *a2, int a3, int a4); | |
133 | 134 |
134 ItemGen *ptr_50C9A4; | 135 ItemGen *ptr_50C9A4; |
135 | 136 |
136 struct ItemsTable *pItemsTable; // 005D29E0 | 137 struct ItemsTable *pItemsTable; // 005D29E0 |
137 | 138 |
2375 CreateButtonInColumn(i+1, v29); | 2376 CreateButtonInColumn(i+1, v29); |
2376 } | 2377 } |
2377 pDialogueWindow->_41D08F(i, 1, 0, 2); | 2378 pDialogueWindow->_41D08F(i, 1, 0, 2); |
2378 dword_F8B1E0 = pDialogueWindow->pNumPresenceButton; | 2379 dword_F8B1E0 = pDialogueWindow->pNumPresenceButton; |
2379 } | 2380 } |
2381 | |
2382 //----- (004BE571) -------------------------------------------------------- | |
2383 int sub_4BE571(int a1, int *a2, int a3, int a4) | |
2384 { | |
2385 int result; // eax@1 | |
2386 int i; // esi@3 | |
2387 | |
2388 result = a3; | |
2389 if ( a3 < a4 ) | |
2390 { | |
2391 for ( i = 0; i < a3; ++i ) | |
2392 { | |
2393 if ( a1 == a2[i] ) | |
2394 break; | |
2395 } | |
2396 if ( i == a3 ) | |
2397 { | |
2398 a2[a3] = a1; | |
2399 result = a3 + 1; | |
2400 } | |
2401 return result; | |
2402 } | |
2403 else | |
2404 { | |
2405 return a4; | |
2406 } | |
2407 } | |
2408 | |
2409 |