Mercurial > mm7
diff Player.cpp @ 299:b0db84628733
paperdoll array
author | Ritor1 |
---|---|
date | Tue, 19 Feb 2013 17:11:57 +0600 |
parents | 055cea8660e5 |
children | 4c2cdda88562 2a09e1d6fc8f b7f0c5abca42 72de4ad353c6 |
line wrap: on
line diff
--- a/Player.cpp Tue Feb 19 09:14:16 2013 +0600 +++ b/Player.cpp Tue Feb 19 17:11:57 2013 +0600 @@ -6818,18 +6818,18 @@ } //----- (004907E7) -------------------------------------------------------- -__int16 Player::GetStatColor(unsigned int uStat) +unsigned int Player::GetStatColor(int uStat) { __int16 uWhite; // si@1 int attribute_value; // edx@1 - unsigned __int8 v8; // of@1 + unsigned __int8 pBaseAttrValue; // of@1 __int16 uGreen; // [sp+8h] [bp-8h]@1 __int16 uRed; // [sp+Ch] [bp-4h]@1 uRed = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0x23u, 0); uGreen = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0); uWhite = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); - v8 = StatTable[GetRace()][uStat].uBaseValue; + pBaseAttrValue = StatTable[GetRace()][uStat].uBaseValue; switch (uStat) { @@ -6842,9 +6842,9 @@ case 6: attribute_value = uLuck; break; }; - if ( attribute_value == v8 ) + if ( attribute_value == pBaseAttrValue ) return uWhite; - else if ( attribute_value > v8 ) + else if ( attribute_value > pBaseAttrValue ) return uGreen; else return uRed;