mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 18:43:37 +00:00
Use standard skin locals in player code
This commit is contained in:
parent
1ab9750fd6
commit
a1fdebbc3b
|
|
@ -932,7 +932,7 @@ void PlayerConnection::handleTextureAndGeometryReceived(const std::wstring &text
|
|||
else
|
||||
{
|
||||
// get the data from the app
|
||||
DWORD dwSkinID = app.getSkinIdFromPath(textureName);
|
||||
std::uint32_t dwSkinID = app.getSkinIdFromPath(textureName);
|
||||
std::vector<SKIN_BOX *> *pvSkinBoxes = app.GetAdditionalSkinBoxes(dwSkinID);
|
||||
unsigned int uiAnimOverrideBitmask= app.GetAnimOverrideBitmask(dwSkinID);
|
||||
|
||||
|
|
|
|||
|
|
@ -666,8 +666,8 @@ void Player::setCustomSkin(std::uint32_t skinId)
|
|||
|
||||
if(pDLCSkinFile!=NULL)
|
||||
{
|
||||
DWORD dwBoxC=pDLCSkinFile->getAdditionalBoxesCount();
|
||||
if(dwBoxC!=0)
|
||||
const int additionalBoxCount = pDLCSkinFile->getAdditionalBoxesCount();
|
||||
if(additionalBoxCount != 0)
|
||||
{
|
||||
app.DebugPrintf("Got model parts from DLCskin for skin %X\n",m_dwSkinId);
|
||||
pvModelParts=app.SetAdditionalSkinBoxes(m_dwSkinId,pDLCSkinFile->getAdditionalBoxes());
|
||||
|
|
@ -2958,8 +2958,8 @@ std::vector<ModelPart *> *Player::GetAdditionalModelParts()
|
|||
|
||||
if(pDLCSkinFile!=NULL)
|
||||
{
|
||||
DWORD dwBoxC=pDLCSkinFile->getAdditionalBoxesCount();
|
||||
if(dwBoxC!=0)
|
||||
const int additionalBoxCount = pDLCSkinFile->getAdditionalBoxesCount();
|
||||
if(additionalBoxCount != 0)
|
||||
{
|
||||
app.DebugPrintf("m_bCheckedForModelParts Got model parts from DLCskin for skin %X\n",m_dwSkinId);
|
||||
m_ppAdditionalModelParts=app.SetAdditionalSkinBoxes(m_dwSkinId,pDLCSkinFile->getAdditionalBoxes());
|
||||
|
|
|
|||
Loading…
Reference in a new issue