Skip to content

Commit

Permalink
Fix off-by-one in turf icon debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit committed Jan 2, 2025
1 parent dce94c8 commit 3a8c33b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion OpenDreamClient/Input/ContextMenu/VerbMenuPopup.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public VerbMenuPopup(ClientVerbSystem? verbSystem, sbyte seeInvisible, ClientObj
case ClientObjectReference.RefType.Turf:
var mapManager = IoCManager.Resolve<IMapManager>();
var mapId = new MapId(_target.TurfZ);
var mapPos = new Vector2(_target.TurfX - 1, _target.TurfY - 1);
var mapPos = new Vector2(_target.TurfX, _target.TurfY);
if (!mapManager.TryFindGridAt(mapId, mapPos, out var gridUid, out var grid)) {
Logger.GetSawmill("opendream")
.Error($"Failed to get icon for {_target} when trying to debug its icon");
Expand Down
1 change: 0 additions & 1 deletion OpenDreamRuntime/Rendering/ServerAppearanceSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Robust.Shared.Player;
using Robust.Shared.Network;
using System.Diagnostics;
using Robust.Shared.Console;

namespace OpenDreamRuntime.Rendering;

Expand Down

0 comments on commit 3a8c33b

Please sign in to comment.