Update content vectors to numerics (#17759)

This commit is contained in:
metalgearsloth
2023-07-08 14:08:32 +10:00
committed by GitHub
parent 15772478c9
commit 68480af109
383 changed files with 978 additions and 575 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using System.Numerics;
using Content.Server.Administration.Commands;
using Content.Server.Cargo.Systems;
using Content.Server.Chat.Managers;
@@ -160,9 +161,12 @@ public sealed class PiratesRuleSystem : GameRuleSystem<PiratesRuleComponent>
aabb.Union(aabbs[i]);
}
// (Not commented?)
var a = MathF.Max(aabb.Height / 2f, aabb.Width / 2f) * 2.5f;
var gridId = _map.LoadGrid(GameTicker.DefaultMap, map, new MapLoadOptions
{
Offset = aabb.Center + MathF.Max(aabb.Height / 2f, aabb.Width / 2f) * 2.5f
Offset = aabb.Center + new Vector2(a, a),
});
if (!gridId.HasValue)