Skip to content

Commit

Permalink
Fix bug with Cyclone spinup on Linux servers.
Browse files Browse the repository at this point in the history
  • Loading branch information
roncli committed Nov 7, 2023
1 parent 0b314ff commit c8e55a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GameMod/PresetData.cs
Expand Up @@ -98,7 +98,7 @@ public static string GetProjData(TextAsset ta)
if (index != -1)
{
var spinup = projData.Substring(index + 23, 1);
var hasCrLf = projData.Substring(index + 24, 2) == Environment.NewLine;
var hasCrLf = projData.Substring(index + 24, 1) == "\r" || projData.Substring(index + 24, 1) == "\n";

if (!hasCrLf || !(new string[] { "0", "1", "2", "3", "4", "5", "6", "7", "8" }.Contains(spinup)))
{
Expand Down

0 comments on commit c8e55a3

Please sign in to comment.