Fix CA1802

This commit is contained in:
RoosterDragon
2023-03-12 15:46:31 +00:00
committed by abcdefg30
parent 0958197df2
commit a50e72f68d
8 changed files with 17 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.Effects
{
public class Beacon : IEffect, IScriptBindable, IEffectAboveShroud
{
static readonly int MaxArrowHeight = 512;
const int MaxArrowHeight = 512;
readonly Player owner;
readonly WPos position;

View File

@@ -22,8 +22,8 @@ namespace OpenRA.Mods.Common.FileFormats
{
public static class Blast
{
public static readonly int MAXBITS = 13; // maximum code length
public static readonly int MAXWIN = 4096; // maximum window size
public const int MAXBITS = 13; // maximum code length
public const int MAXWIN = 4096; // maximum window size
static readonly byte[] LitLen =
{

View File

@@ -30,9 +30,9 @@ namespace OpenRA.Mods.Common.Server
[TranslationReference("player", "timeout")]
const string TimeoutIn = "notification-timeout-dropped-in";
static readonly int PingInterval = 5000; // Ping every 5 seconds
static readonly int ConnReportInterval = 20000; // Report every 20 seconds
static readonly int ConnTimeout = 60000; // Drop unresponsive clients after 60 seconds
const int PingInterval = 5000; // Ping every 5 seconds
const int ConnReportInterval = 20000; // Report every 20 seconds
const int ConnTimeout = 60000; // Drop unresponsive clients after 60 seconds
long lastPing = 0;
long lastConnReport = 0;