Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Resources/Locale/en-US/commands.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,15 @@ cmd-addmap-help = Usage: {$command} <mapID> [pre-init]
cmd-rmmap-desc = Removes a map from the world. You cannot remove nullspace.
cmd-rmmap-help = Usage: {$command} <mapId>

cmd-pausemap-desc = Pauses a map, pausing all simulation processing on it.
cmd-pausemap-help = Usage: pausemap <map ID>

cmd-unpausemap-desc = Unpauses a map, resuming all simulation processing on it.
cmd-unpausemap-help = Usage: unpausemap <map ID>

cmd-querymappaused-desc = Check whether a map is paused or not.
cmd-querymappaused-help = Usage: querymappaused <map ID>

cmd-savegrid-desc = Serializes a grid to disk.
cmd-savegrid-help = Usage: {$command} <gridID> <Path>

Expand Down
2 changes: 1 addition & 1 deletion Robust.Server/GameStates/PvsSystem.Chunks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private void GetVisibleChunks(Entity<TransformComponent, EyeComponent?> eye,
_grids.Clear();
var rangeVec = new Vector2(range, range);
var box = new Box2(viewPos - rangeVec, viewPos + rangeVec);
_mapManager.FindGridsIntersecting(map, box, ref _grids, approx: true, includeMap: false);
_maps.FindGridsIntersecting(map, box, ref _grids, approx: true, includeMap: false);

foreach (var (grid, _) in _grids)
{
Expand Down
4 changes: 2 additions & 2 deletions Robust.Server/GameStates/PvsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ namespace Robust.Server.GameStates;
internal sealed partial class PvsSystem : EntitySystem
{
[Dependency] private IConfigurationManager _configManager = default!;
[Dependency] private INetworkedMapManager _mapManager = default!;
[Dependency] private IServerEntityNetworkManager _netEntMan = default!;
[Dependency] private IPlayerManager _playerManager = default!;
[Dependency] private IParallelManager _parallelManager = default!;
Expand All @@ -40,6 +39,7 @@ internal sealed partial class PvsSystem : EntitySystem
[Dependency] private IParallelManagerInternal _parallelMgr = default!;
[Dependency] private PvsOverrideSystem _pvsOverride = default!;
[Dependency] private IServerReplayRecordingManager _replay = default!;
[Dependency] private SharedMapSystem _maps = default!;

// TODO make this a cvar. Make it in terms of seconds and tie it to tick rate?
// Main issue is that I CBF figuring out the logic for handling it changing mid-game.
Expand Down Expand Up @@ -288,7 +288,7 @@ private void CullDeletionHistory(GameTick oldestAck)
{
using var _ = Histogram.WithLabels("Cull History").NewTimer();
CullDeletionHistoryUntil(oldestAck);
_mapManager.CullDeletionHistory(oldestAck);
_maps.CullDeletionHistory(oldestAck);
}

private void GetEntityStates(PvsSession session)
Expand Down
Loading
Loading