Fix IDE0100
This commit is contained in:
committed by
Pavel Penev
parent
78c41b84a1
commit
ede5412526
@@ -207,6 +207,9 @@ dotnet_diagnostic.IDE0075.severity = warning
|
|||||||
# Convert typeof to nameof.
|
# Convert typeof to nameof.
|
||||||
dotnet_diagnostic.IDE0082.severity = warning
|
dotnet_diagnostic.IDE0082.severity = warning
|
||||||
|
|
||||||
|
# Remove unnecessary equality operator.
|
||||||
|
dotnet_diagnostic.IDE0100.severity = warning
|
||||||
|
|
||||||
# Naming rule violation.
|
# Naming rule violation.
|
||||||
dotnet_diagnostic.IDE1006.severity = warning
|
dotnet_diagnostic.IDE1006.severity = warning
|
||||||
|
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
{
|
{
|
||||||
var bot = botTypes.Random(Game.CosmeticRandom);
|
var bot = botTypes.Random(Game.CosmeticRandom);
|
||||||
var c = orderManager.LobbyInfo.ClientInSlot(slot.Key);
|
var c = orderManager.LobbyInfo.ClientInSlot(slot.Key);
|
||||||
if (slot.Value.AllowBots == true && (c == null || c.Bot != null))
|
if (slot.Value.AllowBots && (c == null || c.Bot != null))
|
||||||
orderManager.IssueOrder(Order.Command($"slot_bot {slot.Key} {botController.Index} {bot}"));
|
orderManager.IssueOrder(Order.Command($"slot_bot {slot.Key} {botController.Index} {bot}"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user