simplified a few lines concerning traits

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5569 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2012-09-16 17:44:33 +00:00
parent 665917e043
commit b7e5b324d1
4 changed files with 16 additions and 10 deletions
+2 -3
View File
@@ -1869,10 +1869,9 @@ void DisplayCharStats(INT32 iId, INT32 iSlot)
// Assign the text
UINT8 traitnr = ubTempSkillArray[ubCnt];
UINT8 mlas = NEWTRAIT_MERCSKILL_EXPERTOFFSET;
if ( traitnr > mlas )
if ( traitnr > NEWTRAIT_MERCSKILL_EXPERTOFFSET )
{
traitnr = traitnr - mlas;
traitnr = traitnr - (NEWTRAIT_MERCSKILL_EXPERTOFFSET);
}
// Flugente: as the whole trait display is fubar, we have to to a special treatment here for new traits