This commit is contained in:
adelikat 2017-05-10 13:40:18 -05:00
parent 429b066955
commit 3860cf89c3
2 changed files with 7 additions and 3 deletions

View File

@ -141,8 +141,10 @@ namespace BizHawk.Client.Common
RecordingBatch = false;
if (!batch.Where(a => a.GetType() != typeof(MovieActionMarker)).Any())
if (batch.All(a => a.GetType() == typeof(MovieActionMarker)))
{
return Movie.InputLogLength;
}
return PreviousUndoFrame;
}
@ -163,8 +165,10 @@ namespace BizHawk.Client.Common
RecordingBatch = false;
if (!batch.Where(a => a.GetType() != typeof(MovieActionMarker)).Any())
if (batch.All(a => a.GetType() == typeof(MovieActionMarker)))
{
return Movie.InputLogLength;
}
return PreviousRedoFrame;
}

View File

@ -545,7 +545,7 @@ namespace BizHawk.Client.Common
/// <returns></returns>
public bool IsDiplayTypeAvailable(DisplayType type)
{
return AvailableTypes().Where<DisplayType>(d => d == type).Any<DisplayType>();
return AvailableTypes().Any(d => d == type);
}
/// <summary>