mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Cleanup warnings: CS0649 (#5891)
* Clean up * Remove "struct UpdateTreesJob" * Use #pragma * Use #if DEBUG * More #if DEBUG
This commit is contained in:
@@ -87,11 +87,13 @@ namespace Robust.Client.Graphics.Clyde
|
||||
if (cmd.Cursor != default)
|
||||
ptr = _winThreadCursors[cmd.Cursor].Ptr;
|
||||
|
||||
#if DEBUG
|
||||
if (_win32Experience)
|
||||
{
|
||||
// Based on a true story.
|
||||
Thread.Sleep(15);
|
||||
}
|
||||
#endif
|
||||
|
||||
GLFW.SetCursor(window, ptr);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,9 @@ namespace Robust.Client.Graphics.Clyde
|
||||
private readonly ISawmill _sawmillGlfw;
|
||||
|
||||
private bool _glfwInitialized;
|
||||
#if DEBUG
|
||||
private bool _win32Experience;
|
||||
#endif
|
||||
|
||||
public GlfwWindowingImpl(Clyde clyde, IDependencyCollection deps)
|
||||
{
|
||||
|
||||
@@ -621,24 +621,6 @@ public abstract partial class SharedPhysicsSystem
|
||||
ArrayPool<Vector2>.Shared.Return(worldPoints);
|
||||
}
|
||||
|
||||
private record struct UpdateTreesJob : IRobustJob
|
||||
{
|
||||
public IEntityManager EntManager;
|
||||
|
||||
public void Execute()
|
||||
{
|
||||
var query = EntManager.AllEntityQueryEnumerator<BroadphaseComponent>();
|
||||
|
||||
while (query.MoveNext(out var broadphase))
|
||||
{
|
||||
broadphase.DynamicTree.Rebuild(false);
|
||||
broadphase.StaticTree.Rebuild(false);
|
||||
broadphase.SundriesTree._b2Tree.Rebuild(false);
|
||||
broadphase.StaticSundriesTree._b2Tree.Rebuild(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void BuildManifolds(Contact[] contacts, int count, ContactStatus[] status, Vector2[] worldPoints)
|
||||
{
|
||||
if (count == 0)
|
||||
|
||||
Reference in New Issue
Block a user