From acf1a36e898d56591e82bb9547bb05d0cc0d9b19 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 17 Mar 2010 22:47:04 +1300 Subject: [PATCH] AddPlayer helper --- OpenRA.Game/World.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Game/World.cs b/OpenRA.Game/World.cs index 545a1c8e90..2b1e45d797 100644 --- a/OpenRA.Game/World.cs +++ b/OpenRA.Game/World.cs @@ -43,6 +43,8 @@ namespace OpenRA public readonly Dictionary players = new Dictionary(); + public void AddPlayer(Player p) { players[p.Index] = p; } + int localPlayerIndex; public Player LocalPlayer {