NetworkOrderSource.
- Also, fixed the bug where watching a replay that contained non-localplayer production orders crashed.
This commit is contained in:
@@ -10,6 +10,7 @@ using OpenRa.Game.GameRules;
|
||||
using OpenRa.Game.Graphics;
|
||||
using OpenRa.Game.Traits;
|
||||
using OpenRa.Game.Support;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace OpenRa.Game
|
||||
{
|
||||
@@ -78,8 +79,10 @@ namespace OpenRa.Game
|
||||
soundEngine = new ISoundEngine();
|
||||
sounds = new Cache<string, ISoundSource>(LoadSound);
|
||||
|
||||
var socket = new TcpClient( "127.0.0.1", 1234 );
|
||||
|
||||
orderManager = (Replay == "")
|
||||
? new OrderManager(new[] { new LocalOrderSource() }, "replay.rep")
|
||||
? new OrderManager(new[] { new NetworkOrderSource( socket ) }, "replay.rep")
|
||||
: new OrderManager(new[] { new ReplayOrderSource(Replay) });
|
||||
|
||||
PlaySound("intro.aud", false);
|
||||
|
||||
Reference in New Issue
Block a user