move Game.Current{Host,Port} into orderManager

This commit is contained in:
Bob
2010-10-11 16:13:48 +13:00
parent 17990ab8b7
commit 10bf85f57e
4 changed files with 34 additions and 29 deletions

View File

@@ -199,10 +199,10 @@ namespace OpenRA.Widgets.Delegates
if (orderManager.LocalClient.Color1 != c1 || orderManager.LocalClient.Color2 != c2)
Game.IssueOrder(Order.Command("color {0},{1},{2},{3},{4},{5}".F(c1.R,c1.G,c1.B,c2.R,c2.G,c2.B)));
}
void ResetConnectionState()
void ResetConnectionState( OrderManager orderManager )
{
if (Game.orderManager.Connection.ConnectionState == ConnectionState.PreConnecting)
if( orderManager.Connection.ConnectionState == ConnectionState.PreConnecting )
hasJoined = false;
}