Mercurial > mm7
diff UI/Books/UIMapBook.cpp @ 2197:42c8807225a2
UIMSG_SpellBook_PressTab continue
author | Ritor1 |
---|---|
date | Fri, 31 Jan 2014 17:30:36 +0600 |
parents | 5b27c035a241 |
children | d9caf2b3d8d5 |
line wrap: on
line diff
--- a/UI/Books/UIMapBook.cpp Fri Jan 31 00:37:26 2014 +0100 +++ b/UI/Books/UIMapBook.cpp Fri Jan 31 17:30:36 2014 +0600 @@ -112,13 +112,13 @@ } pRenderer->DrawTextureTransparent(pBtn_Book_2->uX, pBtn_Book_2->uY, v19); uNumMaxBeacons = 1; - if ( HIBYTE(pPlayer->pActiveSkills[14]) & 1 || (pPlayer->pActiveSkills[14] & 0x80u) != 0 ) + if ( HIBYTE(pPlayer->pActiveSkills[PLAYER_SKILL_WATER]) & 1 || (pPlayer->pActiveSkills[PLAYER_SKILL_WATER] & 0x80u) != 0 ) { uNumMaxBeacons = 5; } else { - if ( pPlayer->pActiveSkills[14] & 0x40 ) + if ( pPlayer->pActiveSkills[PLAYER_SKILL_WATER] & 0x40 ) uNumMaxBeacons = 3; } if ( uNumMaxBeacons > 0 )