Skip to content

Commit

Permalink
Fix to ultra rare condition
Browse files Browse the repository at this point in the history
  • Loading branch information
QuinnWuest committed Dec 12, 2022
1 parent 8649f1d commit 8112829
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Assets/burgerAlarmScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ void GenerateModule()

if (modules.Contains("Ice Cream") || modules.Contains("Cooking") || modules.Contains("Cookie Jars") || modules.Contains("Pie"))
{
if (symbolPositions[7] % 3 < symbolPositions[9] % 3 || (symbolPositions[7] % 3 == 0 && symbolPositions[9] == 9))
if ((symbolPositions[7] % 3 < symbolPositions[9] % 3 && symbolPositions[7] != 9 && symbolPositions[9] != 9) ||
(symbolPositions[7] % 3 == 0 && symbolPositions[9] == 9) ||
(symbolPositions[9] % 3 == 2 && symbolPositions[7] == 9))
tableOffsets[7] = 1;

else
Expand Down

0 comments on commit 8112829

Please sign in to comment.