changed it to modulo to please the code police....
This commit is contained in:
@@ -1253,11 +1253,7 @@ AIPlayer * AIPlayerFactory::createAIPlayer(MTGAllCards * collection, Player * op
|
||||
sprintf(deckFile, JGE_GET_RES("ai/baka/deck%i.txt").c_str(), deckid);
|
||||
int tempDeckId = deckid;
|
||||
int avatarId = 0;
|
||||
while(tempDeckId > 100)
|
||||
{
|
||||
tempDeckId -= 100;
|
||||
}
|
||||
avatarId = tempDeckId;
|
||||
avatarId = tempDeckId % 100;
|
||||
sprintf(avatarFile, "avatar%i.jpg", avatarId);
|
||||
sprintf(deckFileSmall, "ai_baka_deck%i", deckid);
|
||||
}
|
||||
|
||||
@@ -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