Merge branch 'race_floats' into 'master'

Display Race record height/weight as a float

See merge request OpenMW/openmw!880
pull/3094/head
psi29a 4 years ago
commit afda721d4b

@ -13,9 +13,9 @@ namespace ESM
return male ? mMale : mFemale;
}
int Race::MaleFemaleF::getValue (bool male) const
float Race::MaleFemaleF::getValue (bool male) const
{
return static_cast<int>(male ? mMale : mFemale);
return male ? mMale : mFemale;
}
void Race::load(ESMReader &esm, bool &isDeleted)

@ -38,7 +38,7 @@ struct Race
{
float mMale, mFemale;
int getValue (bool male) const;
float getValue (bool male) const;
};
enum Flags

Loading…
Cancel
Save