Fixed bug where collision tag file could not be editir

Fuck file i/o
This commit is contained in:
Diren D Bharwani 2023-02-03 23:51:14 +08:00
parent 7a79cda729
commit ff6ee80df2
1 changed files with 1 additions and 2 deletions

View File

@ -245,10 +245,9 @@ namespace SHADE
}
else
{
mask = static_cast<uint16_t>(std::stoi(maskString));
for (int i = 0; i < SHCollisionTag::NUM_LAYERS; ++i)
{
const bool LAYER_STATE = mask & 1U << i;
const bool LAYER_STATE = maskString[i] == '1';
collisionTags[tagIndex].SetLayerState(i, LAYER_STATE);
}
}