mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Allow passing a clothing file to LoadAvatar and plStringify whatever we encounter on our way
This commit is contained in:
@ -1832,9 +1832,8 @@ void plClothingMgr::IAddItem(plClothingItem *item)
|
||||
hsAssert(false, "Couldn't match all elements of added clothing item.");
|
||||
}
|
||||
|
||||
void plClothingMgr::ChangeAvatar(char *name)
|
||||
void plClothingMgr::ChangeAvatar(const char* name, const plFileName &clothingFile)
|
||||
{
|
||||
plAvatarMgr::GetInstance()->UnLoadLocalPlayer();
|
||||
plAvatarMgr::GetInstance()->LoadPlayer(name, nil);
|
||||
plAvatarMgr::GetInstance()->LoadPlayerFromFile(name, "", clothingFile);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user