void ResetRoomObjects()
{
int j = 1;
for (int i = 0; i < roomData.Objects.Count; i++)
{
for (; j < _objs.Length; j++)
{
if (_objs[j].FloatingObjectIndex == 0)
break;
}
_objs[j] = roomData.Objects[i];
// HACK: This is done since an angle doesn't fit into a byte (360 > 256)
_objs[j].ActorDir = Game.Version == 8 ? (byte)ScummMath.ToSimpleDir(true, roomData.Objects[i].ActorDir) : roomData.Objects[i].ActorDir;
j++;
}
for (int i = j; i < _objs.Length; i++)
{
if (_objs[i].FloatingObjectIndex == 0)
{
_objs[i] = new ObjectData();
}
}
}