Update content vectors to numerics (#17759)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Content.Server.Worldgen.Components;
|
||||
using Content.Server.Worldgen.Components.Debris;
|
||||
using Content.Server.Worldgen.Systems.GC;
|
||||
@@ -231,8 +232,8 @@ public sealed class DebrisFeaturePlacerSystem : BaseWorldSystem
|
||||
private List<Vector2> GeneratePointsInChunk(EntityUid chunk, float density, Vector2 coords, EntityUid map)
|
||||
{
|
||||
var offs = (int) ((WorldGen.ChunkSize - WorldGen.ChunkSize / 8.0f) / 2.0f);
|
||||
var topLeft = (-offs, -offs);
|
||||
var lowerRight = (offs, offs);
|
||||
var topLeft = new Vector2(-offs, -offs);
|
||||
var lowerRight = new Vector2(offs, offs);
|
||||
var enumerator = _sampler.SampleRectangle(topLeft, lowerRight, density);
|
||||
var debrisPoints = new List<Vector2>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user