Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Core/RageModelDecoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private static bool LooksLikeDrawableHeader(ReadOnlySpan<byte> prefix, bool embe
!(SystemPointer(name) || (embedded && name == 0))) return false;
Vector3 min = ReadVector(prefix, 48), max = ReadVector(prefix, 64);
float radius = BinaryPrimitives.ReadSingleLittleEndian(prefix[44..]);
return ValidBounds(min, max) && float.IsFinite(radius) && radius is > 0 and < 1_000_000;
return ValidBounds(min, max) && float.IsFinite(radius) && radius is >= 0 and < 1_000_000;
}

public static RageModel? Inspect(ReadOnlySpan<byte> system, ReadOnlySpan<byte> graphics) => Decode(system, graphics);
Expand Down