This commit is contained in:
Regalis
2015-10-31 15:16:49 +02:00
parent bcc96cee97
commit b0deba514e
29 changed files with 348 additions and 81 deletions

View File

@@ -635,9 +635,7 @@ namespace Barotrauma.Networking
}
if (recipients.Count == 0) return;
foreach (NetworkEvent networkEvent in NetworkEvent.events)
{
NetOutgoingMessage message = server.CreateMessage();
@@ -676,8 +674,17 @@ namespace Barotrauma.Networking
public bool StartGameClicked(GUIButton button, object obj)
{
Submarine selectedSub = Voting.AllowSubVoting ?
Voting.HighestVoted<Submarine>(VoteType.Sub, connectedClients) : GameMain.NetLobbyScreen.SelectedSub;
Submarine selectedSub = null;
if (Voting.AllowSubVoting)
{
Voting.HighestVoted<Submarine>(VoteType.Sub, connectedClients);
if (selectedSub == null) selectedSub = GameMain.NetLobbyScreen.SelectedSub;
}
else
{
selectedSub = GameMain.NetLobbyScreen.SelectedSub;
}
if (selectedSub == null)
{
@@ -692,6 +699,8 @@ namespace Barotrauma.Networking
private IEnumerable<object> StartGame(Submarine selectedSub)
{
GUIMessageBox.CloseAll();
AssignJobs();
//selectedMap.Load();

View File

@@ -155,7 +155,7 @@ namespace Barotrauma.Networking
settingsFrame = null;
}
return true;
return false;
}
}
}

View File

@@ -246,7 +246,7 @@ namespace Barotrauma.Networking
}
}
if (PlayerInput.KeyHit(Keys.Tab))
if (PlayerInput.KeyHit(InputType.Chat))
{
if (chatMsgBox.Selected)
{