mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-05 15:55:54 +00:00
Horizontal offsets
This commit is contained in:
parent
aa838aeda1
commit
bbdba6ae6d
7 changed files with 168 additions and 10 deletions
|
|
@ -19,7 +19,7 @@ public static class ShuffleExtensions
|
|||
if (originalCount == 0) yield break;
|
||||
|
||||
// Repeat elements to meet the desired length
|
||||
if (desiredLength.HasValue && desiredLength > originalCount)
|
||||
if (desiredLength > originalCount)
|
||||
{
|
||||
int countToAdd = desiredLength.Value - originalCount;
|
||||
for (int i = 0; i < countToAdd; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue