mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47:42 +00:00
CIntElement: Add class to handle RTOI int elements
Within the int element handling code, there seems to be a missing implementation (with the FourCC 'RTOI'), which seems to take two 32-bit floating point values, multiplies them, then converts the result to a 32-bit integer.
This commit is contained in:
@@ -666,6 +666,11 @@ std::unique_ptr<CIntElement> CParticleDataFactory::GetIntElement(CInputStream& i
|
||||
auto b = GetIntElement(in);
|
||||
return std::make_unique<CIERandom>(std::move(a), std::move(b));
|
||||
}
|
||||
case SBIG('RTOI'): {
|
||||
auto a = GetRealElement(in);
|
||||
auto b = GetRealElement(in);
|
||||
return std::make_unique<CIERealToInt>(std::move(a), std::move(b));
|
||||
}
|
||||
case SBIG('TSCL'): {
|
||||
auto a = GetRealElement(in);
|
||||
return std::make_unique<CIETimeScale>(std::move(a));
|
||||
|
||||
Reference in New Issue
Block a user