Fixed skin offset data
Fixed skin offsets so they now return the actual data instead of the defaults, added a few minor tweaks, and added code in PlayerRenderer.cpp to access offsets (Can read the offsets but can not apply them).
This commit is contained in:
@@ -237,7 +237,7 @@ void TextureAndGeometryPacket::read(DataInputStream *dis) //throws IOException
|
||||
for(DWORD i=0;i<dwOffsetC;i++)
|
||||
{
|
||||
this->OffsetDataA[i].ePart = static_cast<eBodyOffset>(dis->readShort());
|
||||
this->OffsetDataA[i].fD = dis->readChar();
|
||||
this->OffsetDataA[i].fD = dis->readFloat();
|
||||
this->OffsetDataA[i].fO = dis->readFloat();
|
||||
}
|
||||
}
|
||||
@@ -274,7 +274,7 @@ void TextureAndGeometryPacket::write(DataOutputStream *dos) //throws IOException
|
||||
for(DWORD i=0;i<dwOffsetC;i++)
|
||||
{
|
||||
dos->writeShort(static_cast<short>(this->OffsetDataA[i].ePart));
|
||||
dos->writeChar(this->OffsetDataA[i].fD);
|
||||
dos->writeFloat(this->OffsetDataA[i].fD);
|
||||
dos->writeFloat(this->OffsetDataA[i].fO);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user