added a true method to recycle our 100 avatar images, and made sure they stay in line with the menu image if theyre over 100.

This commit is contained in:
omegablast2002@yahoo.com
2011-04-20 21:21:12 +00:00
parent f805d195ad
commit 561054ba34
3 changed files with 15 additions and 8 deletions

View File

@@ -72,12 +72,13 @@ int DeckMetaData::getAvatarId()
{
if ( mDeckId < 101 )
return mDeckId;
int avatarId = mDeckId % 100;
if (avatarId == 0)
return 100;
int tempDeckId = mDeckId;
int avatarId = 0;
while(tempDeckId > 100)
{
tempDeckId -= 100;
avatarId = tempDeckId;
}
return avatarId;
}