comparison UI/Books/UIMapBook.cpp @ 1523:53265d238d94

interaction_distance_limit for 3DModel in DrawStatusText
author Ritor1
date Thu, 05 Sep 2013 13:12:30 +0600
parents a27cdb3d753e
children c4ab816fcc5e
comparison
equal deleted inserted replaced
1511:948191fca433 1523:53265d238d94
526 } 526 }
527 if ( v48 == 1 ) 527 if ( v48 == 1 )
528 { 528 {
529 v51 = pParty->sRotationY & stru_5C6E00->uDoublePiMask; 529 v51 = pParty->sRotationY & stru_5C6E00->uDoublePiMask;
530 if ( (signed int)v51 <= 1920 ) 530 if ( (signed int)v51 <= 1920 )
531 v50 = 6;
532 if ( (signed int)v51 < 1664 )
533 v50 = 5;
534 if ( (signed int)v51 <= 1408 )
535 v50 = 4;
536 if ( (signed int)v51 < 1152 )
537 v50 = 3;
538 if ( (signed int)v51 <= 896 )
539 v50 = 2;
540 if ( (signed int)v51 < 640 )
541 v50 = 1;
542 if ( (signed int)v51 <= 384 )
543 v50 = 0;
544 if ( (signed int)v51 < 128 || (signed int)v51 > 1920 )
531 v50 = 7; 545 v50 = 7;
532 if ( (signed int)v51 < 1664 )
533 v50 = 6;
534 if ( (signed int)v51 <= 1408 )
535 v50 = 5;
536 if ( (signed int)v51 < 1152 )
537 v50 = 4;
538 if ( (signed int)v51 <= 896 )
539 v50 = 3;
540 if ( (signed int)v51 < 640 )
541 v50 = 2;
542 if ( (signed int)v51 <= 384 )
543 v50 = 1;
544 if ( (signed int)v51 < 128 )
545 v50 = 0;
546 pRenderer->DrawTransparentRedShade(v47, v49, pIcons_LOD->GetTexture(pTextureIDs_pMapDirs[v50])); 546 pRenderer->DrawTransparentRedShade(v47, v49, pIcons_LOD->GetTexture(pTextureIDs_pMapDirs[v50]));
547 } 547 }
548 result = TargetColor(0xFFu, 0xFFu, 0xFFu); 548 result = TargetColor(0xFFu, 0xFFu, 0xFFu);
549 pCenterX = result; 549 pCenterX = result;
550 if ( (signed int)uNumLevelDecorations > 0 ) 550 if ( (signed int)uNumLevelDecorations > 0 )