Mercurial > mm7
comparison GUI/UI/UiGame.cpp @ 2516:56b6d74ce716
.
author | Ritor1 |
---|---|
date | Thu, 02 Oct 2014 22:01:06 +0600 |
parents | 491f0babd563 |
children | c7264ab7132f |
comparison
equal
deleted
inserted
replaced
2515:b96f6cb1855d | 2516:56b6d74ce716 |
---|---|
1909 //draw arrow on the minimap(include. Ritor1) | 1909 //draw arrow on the minimap(include. Ritor1) |
1910 uint arrow_idx; | 1910 uint arrow_idx; |
1911 unsigned int rotate = pParty->sRotationY & stru_5C6E00->uDoublePiMask; | 1911 unsigned int rotate = pParty->sRotationY & stru_5C6E00->uDoublePiMask; |
1912 if ( (signed int)rotate <= 1920 ) | 1912 if ( (signed int)rotate <= 1920 ) |
1913 arrow_idx = 6; | 1913 arrow_idx = 6; |
1914 else if ( (signed int)rotate < 1664 ) | 1914 if ( (signed int)rotate < 1664 ) |
1915 arrow_idx = 5; | 1915 arrow_idx = 5; |
1916 else if ( (signed int)rotate <= 1408 ) | 1916 if ( (signed int)rotate <= 1408 ) |
1917 arrow_idx = 4; | 1917 arrow_idx = 4; |
1918 else if ( (signed int)rotate < 1152 ) | 1918 if ( (signed int)rotate < 1152 ) |
1919 arrow_idx = 3; | 1919 arrow_idx = 3; |
1920 else if ( (signed int)rotate <= 896 ) | 1920 if ( (signed int)rotate <= 896 ) |
1921 arrow_idx = 2; | 1921 arrow_idx = 2; |
1922 else if ( (signed int)rotate < 640 ) | 1922 if ( (signed int)rotate < 640 ) |
1923 arrow_idx = 1; | 1923 arrow_idx = 1; |
1924 else if ( (signed int)rotate <= 384 ) | 1924 if ( (signed int)rotate <= 384 ) |
1925 arrow_idx = 0; | 1925 arrow_idx = 0; |
1926 else if ( (signed int)rotate < 128 || (signed int)rotate > 1920 ) | 1926 if ( (signed int)rotate < 128 || (signed int)rotate > 1920 ) |
1927 arrow_idx = 7; | 1927 arrow_idx = 7; |
1928 pRenderer->DrawTextureTransparent(uCenterX - 3, uCenterY - 3, pIcons_LOD->GetTexture(pTextureIDs_pMapDirs[arrow_idx]));//стрелка | 1928 pRenderer->DrawTextureTransparent(uCenterX - 3, uCenterY - 3, pIcons_LOD->GetTexture(pTextureIDs_pMapDirs[arrow_idx]));//стрелка |
1929 | 1929 |
1930 //draw objects on the minimap | 1930 //draw objects on the minimap |
1931 if ( bWizardEyeActive ) | 1931 if ( bWizardEyeActive ) |