Fix ParallaxGenerator dying (#2637)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
@@ -98,7 +98,7 @@ namespace Content.Client.Parallax
|
||||
|
||||
if (table.TryGetValue("seed", out tomlObject))
|
||||
{
|
||||
Seed = (uint) ((TomlValue<int>) tomlObject).Value;
|
||||
Seed = (uint) ((TomlValue<long>) tomlObject).Value;
|
||||
}
|
||||
|
||||
if (table.TryGetValue("persistence", out tomlObject))
|
||||
@@ -118,7 +118,7 @@ namespace Content.Client.Parallax
|
||||
|
||||
if (table.TryGetValue("octaves", out tomlObject))
|
||||
{
|
||||
Octaves = (uint) ((TomlValue<int>) tomlObject).Value;
|
||||
Octaves = (uint) ((TomlValue<long>) tomlObject).Value;
|
||||
}
|
||||
|
||||
if (table.TryGetValue("threshold", out tomlObject))
|
||||
@@ -225,12 +225,12 @@ namespace Content.Client.Parallax
|
||||
{
|
||||
if (table.TryGetValue("seed", out var tomlObject))
|
||||
{
|
||||
Seed = ((TomlValue<int>) tomlObject).Value;
|
||||
Seed = (int) ((TomlValue<long>) tomlObject).Value;
|
||||
}
|
||||
|
||||
if (table.TryGetValue("count", out tomlObject))
|
||||
{
|
||||
PointCount = ((TomlValue<int>) tomlObject).Value;
|
||||
PointCount = (int) ((TomlValue<long>) tomlObject).Value;
|
||||
}
|
||||
|
||||
if (table.TryGetValue("sourcefactor", out tomlObject))
|
||||
@@ -255,7 +255,7 @@ namespace Content.Client.Parallax
|
||||
|
||||
if (table.TryGetValue("pointsize", out tomlObject))
|
||||
{
|
||||
PointSize = ((TomlValue<int>) tomlObject).Value;
|
||||
PointSize = (int) ((TomlValue<long>) tomlObject).Value;
|
||||
}
|
||||
|
||||
// Noise mask stuff.
|
||||
@@ -266,7 +266,7 @@ namespace Content.Client.Parallax
|
||||
|
||||
if (table.TryGetValue("maskseed", out tomlObject))
|
||||
{
|
||||
MaskSeed = (uint) ((TomlValue<int>) tomlObject).Value;
|
||||
MaskSeed = (uint) ((TomlValue<long>) tomlObject).Value;
|
||||
}
|
||||
|
||||
if (table.TryGetValue("maskpersistence", out tomlObject))
|
||||
@@ -286,7 +286,7 @@ namespace Content.Client.Parallax
|
||||
|
||||
if (table.TryGetValue("maskoctaves", out tomlObject))
|
||||
{
|
||||
MaskOctaves = (uint) ((TomlValue<int>) tomlObject).Value;
|
||||
MaskOctaves = (uint) ((TomlValue<long>) tomlObject).Value;
|
||||
}
|
||||
|
||||
if (table.TryGetValue("maskthreshold", out tomlObject))
|
||||
|
||||
Reference in New Issue
Block a user