Fix IDE0053
This commit is contained in:
committed by
Pavel Penev
parent
37afd6094e
commit
939f715e3c
@@ -56,14 +56,10 @@ namespace OpenRA
|
||||
}
|
||||
|
||||
public static Func<string, Type, string, object> InvalidValueAction = (s, t, f) =>
|
||||
{
|
||||
throw new YamlException($"FieldLoader: Cannot parse `{s}` into `{f}.{t}` ");
|
||||
};
|
||||
|
||||
public static Action<string, Type> UnknownFieldAction = (s, f) =>
|
||||
{
|
||||
throw new NotImplementedException($"FieldLoader: Missing field `{s}` on `{f.Name}`");
|
||||
};
|
||||
|
||||
static readonly ConcurrentCache<Type, FieldLoadInfo[]> TypeLoadInfo =
|
||||
new ConcurrentCache<Type, FieldLoadInfo[]>(BuildTypeLoadInfo);
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace OpenRA
|
||||
{
|
||||
var newConnection = new NetworkConnection(endpoint);
|
||||
if (recordReplay)
|
||||
newConnection.StartRecording(() => { return TimestampedFilename(); });
|
||||
newConnection.StartRecording(() => TimestampedFilename());
|
||||
|
||||
var om = new OrderManager(newConnection);
|
||||
JoinInner(om);
|
||||
@@ -618,10 +618,7 @@ namespace OpenRA
|
||||
|
||||
if (orderManager.TryTick())
|
||||
{
|
||||
Sync.RunUnsynced(world, () =>
|
||||
{
|
||||
world.OrderGenerator.Tick(world);
|
||||
});
|
||||
Sync.RunUnsynced(world, () => world.OrderGenerator.Tick(world));
|
||||
|
||||
world.Tick();
|
||||
|
||||
|
||||
@@ -336,7 +336,7 @@ namespace OpenRA.Server
|
||||
|
||||
if (Settings.RecordReplays && Type == ServerType.Dedicated)
|
||||
{
|
||||
recorder = new ReplayRecorder(() => { return Game.TimestampedFilename(extra: "-Server"); });
|
||||
recorder = new ReplayRecorder(() => Game.TimestampedFilename(extra: "-Server"));
|
||||
|
||||
// We only need one handshake to initialize the replay.
|
||||
// Add it now, then ignore the redundant handshakes from each client
|
||||
|
||||
Reference in New Issue
Block a user