changed it to modulo to please the code police....
This commit is contained in:
@@ -74,11 +74,7 @@ int DeckMetaData::getAvatarId()
|
||||
return mDeckId;
|
||||
int tempDeckId = mDeckId;
|
||||
int avatarId = 0;
|
||||
while(tempDeckId > 100)
|
||||
{
|
||||
tempDeckId -= 100;
|
||||
}
|
||||
avatarId = tempDeckId;
|
||||
avatarId = tempDeckId%100;
|
||||
return avatarId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user