Mercurial > mm7
diff 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 |
line wrap: on
line diff
--- a/UI/Books/UIMapBook.cpp Mon Sep 02 17:39:31 2013 +0600 +++ b/UI/Books/UIMapBook.cpp Thu Sep 05 13:12:30 2013 +0600 @@ -528,21 +528,21 @@ { v51 = pParty->sRotationY & stru_5C6E00->uDoublePiMask; if ( (signed int)v51 <= 1920 ) - v50 = 7; + v50 = 6; if ( (signed int)v51 < 1664 ) - v50 = 6; + v50 = 5; if ( (signed int)v51 <= 1408 ) - v50 = 5; + v50 = 4; if ( (signed int)v51 < 1152 ) - v50 = 4; + v50 = 3; if ( (signed int)v51 <= 896 ) - v50 = 3; + v50 = 2; if ( (signed int)v51 < 640 ) - v50 = 2; + v50 = 1; if ( (signed int)v51 <= 384 ) - v50 = 1; - if ( (signed int)v51 < 128 ) v50 = 0; + if ( (signed int)v51 < 128 || (signed int)v51 > 1920 ) + v50 = 7; pRenderer->DrawTransparentRedShade(v47, v49, pIcons_LOD->GetTexture(pTextureIDs_pMapDirs[v50])); } result = TargetColor(0xFFu, 0xFFu, 0xFFu);