Fixed bug where collision tag file could not be editir
Fuck file i/o
This commit is contained in:
parent
7a79cda729
commit
ff6ee80df2
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue