Skip to content

Commit 2e1d33f

Browse files
Sh4d0vCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]> Signed-off-by: Palit <[email protected]>
1 parent 559d9b5 commit 2e1d33f

File tree

2 files changed

+4
-4
lines changed
  • Intersect.Client.Core/Interface/Game/Admin
  • Intersect.Client.Framework/Gwen/Control

2 files changed

+4
-4
lines changed

Intersect.Client.Core/Interface/Game/Admin/BanMuteBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public partial class BanMuteBox : WindowControl
2424
(Strings.BanMute.TwoMonths, 60),
2525
(Strings.BanMute.SixMonths, 180),
2626
(Strings.BanMute.OneYear, 365),
27-
(Strings.BanMute.Forever, int.MaxValue),
27+
(Strings.BanMute.Forever, 999999),
2828
};
2929

3030
public BanMuteBox(string title, string prompt, EventHandler okayHandler) : base(

Intersect.Client.Framework/Gwen/Control/Base.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,12 +1301,12 @@ public void Dispose()
13011301
return;
13021302
}
13031303

1304-
// I think its only used for diagnosis, so Im adding the DEBUG condition. I hope so
1304+
// This stack trace is only used for diagnostics, so it is included only in DEBUG builds.
13051305
#if DEBUG
13061306
_disposeStack = new StackTrace(fNeedFileInfo: true);
13071307
#endif
13081308

1309-
// We mark that Dispose() has been called to prevents Dispose from being executed again
1309+
// We mark that Dispose() has been called to prevent Dispose from being executed again
13101310
_disposed = true;
13111311

13121312
// Remove all pending tasks from the thread queue of this control
@@ -1315,7 +1315,7 @@ public void Dispose()
13151315
// Virtual Dispose() so that inherited classes can release their resources
13161316
Dispose(disposing: true);
13171317

1318-
// Reserve an assistant variable for the texture caching mechanism
1318+
// Reserve a temporary variable for the texture caching mechanism
13191319
ICacheToTexture? cache = default;
13201320

13211321
#pragma warning disable CA1031 // Do not catch general exception types

0 commit comments

Comments
 (0)