comparison mm7_4.cpp @ 440:4946b3ed74be

more itemgen
author Gloval
date Sun, 24 Feb 2013 16:11:51 +0400
parents 6b8118542175
children c0ab5f64b37b 197461e5acec
comparison
equal deleted inserted replaced
439:6b8118542175 440:4946b3ed74be
12208 v122 = 0; 12208 v122 = 0;
12209 if ( dword_F8B19C == 2 ) 12209 if ( dword_F8B19C == 2 )
12210 { 12210 {
12211 do 12211 do
12212 { 12212 {
12213 if ( pParty->field_777C[9 * (v49 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)] ) 12213 // if ( pParty->field_777C[9 * (v49 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)] )
12214 if ( pParty->field_777C[(unsigned int)window_SpeakInHouse->ptr_1C][v49].uItemID);
12214 { 12215 {
12215 v50 = dword_F8B168[v49]; 12216 v50 = dword_F8B168[v49];
12216 v51 = 152 - v50->uTextureHeight; 12217 v51 = 152 - v50->uTextureHeight;
12217 if ( (signed int)v51 < 1 ) 12218 if ( (signed int)v51 < 1 )
12218 v51 = 0; 12219 v51 = 0;
12240 } 12241 }
12241 while ( v49 < 6 ); 12242 while ( v49 < 6 );
12242 v122 = 0; 12243 v122 = 0;
12243 do 12244 do
12244 { 12245 {
12245 if ( pParty->field_777C[9 * (v122 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C) + 54] ) 12246 //if ( pParty->field_777C[9 * (v122 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C) + 54] )
12247 if ( pParty->field_777C[(unsigned int)window_SpeakInHouse->ptr_1C][v122+1].uItemID);
12246 { 12248 {
12247 v54 = dword_F8B168[v122 + 6]; 12249 v54 = dword_F8B168[v122 + 6];
12248 v55 = 306 - v54->uTextureHeight; 12250 v55 = 306 - v54->uTextureHeight;
12249 v56 = 75 * v122 - v54->uTextureWidth / 2 + 40; 12251 v56 = 75 * v122 - v54->uTextureWidth / 2 + 40;
12250 if ( v122 ) 12252 if ( v122 )
12341 v117 = 0; 12343 v117 = 0;
12342 if ( dword_F8B19C == 2 ) 12344 if ( dword_F8B19C == 2 )
12343 { 12345 {
12344 do 12346 do
12345 { 12347 {
12346 if ( pParty->field_777C[9 * (v66 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)] ) 12348 if ( pParty->field_777C[(unsigned int)window_SpeakInHouse->ptr_1C][v66].uItemID); //9 * (v66 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C)] )
12347 ++v117; 12349 ++v117;
12348 ++v66; 12350 ++v66;
12349 } 12351 }
12350 while ( v66 < 12 ); 12352 while ( v66 < 12 );
12351 } 12353 }
12385 if ( pRenderer->pActiveZBuffer[result] & 0xFFFF ) 12387 if ( pRenderer->pActiveZBuffer[result] & 0xFFFF )
12386 { 12388 {
12387 v71 = (pRenderer->pActiveZBuffer[result] & 0xFFFF) - 1; 12389 v71 = (pRenderer->pActiveZBuffer[result] & 0xFFFF) - 1;
12388 v117 = v71; 12390 v117 = v71;
12389 v72 = (int)window_SpeakInHouse->ptr_1C; 12391 v72 = (int)window_SpeakInHouse->ptr_1C;
12390 v73 = 9 * (v71 + 12 * v72); 12392 // v73 = 9 * (v71 + 12 * v72);
12391 v74 = (ItemGen *)&pParty->field_777C[v73]; 12393 v74 = (ItemGen *)&pParty->field_777C[v72][v71];
12392 if ( dword_F8B19C != 2 ) 12394 if ( dword_F8B19C != 2 )
12393 // v74 = (ItemGen *)&pParty->field_C59C[v73 + 724]; 12395 // v74 = (ItemGen *)&pParty->field_C59C[v73 + 724];
12394 v74 =&pParty->Recipes_Item[v72][v71]; 12396 v74 =&pParty->Recipes_Item[v72][v71];
12395 if ( v67 && Str ) 12397 if ( v67 && Str )
12396 { 12398 {