Fix video playback to work with D2k VQAs

This commit is contained in:
penev92
2015-05-09 18:10:01 +03:00
parent be609c6033
commit 6c75d1dde3
2 changed files with 4 additions and 1 deletions

View File

@@ -74,6 +74,9 @@ namespace OpenRA.FileFormats
var count = ((i & 0x70) >> 4) + 3;
var rpos = ((i & 0xf) << 8) + secondByte;
if (destIndex + count > dest.Length)
return destIndex;
ReplicatePrevious(dest, destIndex, destIndex - rpos, count);
destIndex += count;
}

View File

@@ -304,7 +304,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
if (!GlobalFileSystem.Exists(filename))
return false;
if (Path.GetExtension(filename).ToLower() == ".vqa")
if (Path.GetExtension(filename.ToLowerInvariant()) == ".vqa")
{
player = panel.Get<VqaPlayerWidget>("PLAYER");
currentFilename = filename;