Skip to content

Commit

Permalink
undo debug changes to DockingSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkheemist committed Dec 27, 2024
1 parent 123dde8 commit c2882f8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Content.Server/Shuttles/Systems/DockingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public void Dock(Entity<DockingComponent> dockA, Entity<DockingComponent> dockB)
_doorSystem.SetBoltsDown((dockAUid, airlockA), true);
}
}
//doorA.ChangeAirtight = false; //testing docked airtightness
doorA.ChangeAirtight = false;
}

if (TryComp(dockBUid, out DoorComponent? doorB))
Expand All @@ -299,7 +299,7 @@ public void Dock(Entity<DockingComponent> dockA, Entity<DockingComponent> dockB)
_doorSystem.SetBoltsDown((dockBUid, airlockB), true);
}
}
//doorB.ChangeAirtight = false; //testing docked airtightness
doorB.ChangeAirtight = false;
}

if (_pathfinding.TryCreatePortal(dockAXform.Coordinates, dockBXform.Coordinates, out var handle))
Expand Down Expand Up @@ -352,10 +352,8 @@ private void OnUndock(EntityUid dockUid)
if (TryComp<DoorBoltComponent>(dockUid, out var airlock))
_doorSystem.SetBoltsDown((dockUid, airlock), false);



//if (TryComp(dockUid, out DoorComponent? door) && _doorSystem.TryClose(dockUid, door))
// door.ChangeAirtight = false;
if (TryComp(dockUid, out DoorComponent? door) && _doorSystem.TryClose(dockUid, door))
door.ChangeAirtight = true;
}

private void OnRequestUndock(EntityUid uid, ShuttleConsoleComponent component, UndockRequestMessage args)
Expand Down

0 comments on commit c2882f8

Please sign in to comment.