mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Rewrote path random selection to use built-in rangeseeded call, prevent integer overflow error
This commit is contained in:
parent
6606395223
commit
abb3c1fe18
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -16,7 +16,7 @@ namespace Rimworld_Animations
|
||||||
|
|
||||||
for (int i = 0; i < loops; i++)
|
for (int i = 0; i < loops; i++)
|
||||||
{
|
{
|
||||||
GroupAnimationDef selectedDef = paths[((seed * 341 + 1582 * i) % 15823) % paths.Count];
|
GroupAnimationDef selectedDef = paths[Rand.RangeSeeded(0, paths.Count, seed + i)];
|
||||||
|
|
||||||
animationDefs.AddRange(selectedDef.GetAllAnimationsForActor(actorNumber, seed));
|
animationDefs.AddRange(selectedDef.GetAllAnimationsForActor(actorNumber, seed));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue