Disallow watching replays with zero duration.

This commit is contained in:
Paul Chote
2011-05-10 18:31:24 +12:00
parent 814845730f
commit ab28f5867f
2 changed files with 32 additions and 36 deletions

View File

@@ -102,11 +102,13 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
/* a maze of twisty little hacks,... */
public class ReplaySummary
{
public readonly string Filename;
public readonly int Duration;
public readonly Session LobbyInfo;
public ReplaySummary(string filename)
{
Filename = filename;
var lastFrame = 0;
var hasSeenGameStart = false;
var lobbyInfo = null as Session;