2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 15:07:43 +00:00

VisorParameters scan passthrough property

This commit is contained in:
Jack Andersen
2018-06-15 10:37:00 -10:00
parent de952f8e8b
commit 513d9c99cd
4 changed files with 13 additions and 15 deletions

View File

@@ -262,13 +262,13 @@ CVisorParameters ScriptLoader::LoadVisorParameters(CInputStream& in)
if (propCount >= 1 && propCount <= 3)
{
bool b1 = in.readBool();
bool b2 = false;
bool scanPassthrough = false;
u8 mask = 0xf;
if (propCount > 1)
b2 = in.readBool();
if (propCount > 2)
mask = in.readUint32Big();
return CVisorParameters(mask, b1, b2);
scanPassthrough = in.readBool();
if (propCount >= 2)
mask = u8(in.readUint32Big());
return CVisorParameters(mask, b1, scanPassthrough);
}
return CVisorParameters();
}