.Any(), .Count() -> .Count or .Length
This commit is contained in:
committed by
atlimit8
parent
6eb4fe8980
commit
79f321cb44
@@ -41,7 +41,7 @@ namespace OpenRA.Traits
|
||||
|
||||
void ITick.Tick(Actor self)
|
||||
{
|
||||
if (shakeEffects.Any())
|
||||
if (shakeEffects.Count > 0)
|
||||
{
|
||||
worldRenderer.Viewport.Scroll(GetScrollOffset(), true);
|
||||
shakeEffects.RemoveAll(t => t.ExpiryTime == ticks);
|
||||
|
||||
Reference in New Issue
Block a user