Skip to content

Commit

Permalink
themes: add BUGFIX for TFit_Obj5
Browse files Browse the repository at this point in the history
The first valid location is always returned, regardless of the
value of the random iteration count (r). This is due to the fact that
found is true when a valid location has been located, and the
(xp, yp)-coordinate is only updated if !found.
  • Loading branch information
mewmew committed Jan 6, 2025
1 parent 6b7135c commit 0549d16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/themes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ BOOL TFit_Obj5(int t)
continue;
}

// BUGFIX: the first valid location is always returned, regardless of the
// value of the random iteration count (r). This is due to the fact that
// found is true when a valid location has been located, and the
// (xp, yp)-coordinate is only updated if !found.
r--;
}

Expand Down

0 comments on commit 0549d16

Please sign in to comment.