mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Eliminate hsScalar and hsFixed
Modern CPUs support floats just fine... hsFixed was crazy.
This commit is contained in:
@ -230,7 +230,7 @@ void plClothingSDLModifier::HandleSingleSDR(const plStateDataRecord *sdr, plClot
|
||||
|
||||
int i;
|
||||
uint8_t tint[3];
|
||||
hsScalar tintScalar[3];
|
||||
float tintScalar[3];
|
||||
if (!strcmp(sdr->GetDescriptor()->GetName(), kStrClothingDescName))
|
||||
{
|
||||
// get item from clothesItem
|
||||
@ -302,7 +302,7 @@ void plClothingSDLModifier::HandleSingleSDR(const plStateDataRecord *sdr, plClot
|
||||
{
|
||||
uint8_t blend;
|
||||
faceBlends->Get(&blend, i);
|
||||
clothing->fSkinBlends[i] = (hsScalar)blend / 255;
|
||||
clothing->fSkinBlends[i] = (float)blend / 255;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user