v0.4.1.0 + fixed gamemode list not being synced with clients

This commit is contained in:
Regalis
2016-05-19 19:50:37 +03:00
parent 7113a154fe
commit 1d3d1d5459
4 changed files with 43 additions and 7 deletions

View File

@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.4.0.2")]
[assembly: AssemblyFileVersion("0.4.0.2")]
[assembly: AssemblyVersion("0.4.1.0")]
[assembly: AssemblyFileVersion("0.4.1.0")]

View File

@@ -236,12 +236,12 @@ namespace Barotrauma
missionTypeButtons = new GUIButton[2];
missionTypeButtons[0] = new GUIButton(new Rectangle(120, 0, 20, 20), "<", Alignment.BottomLeft, GUI.Style, missionTypeBlock);
missionTypeButtons[0] = new GUIButton(new Rectangle(100, 0, 20, 20), "<", Alignment.BottomLeft, GUI.Style, missionTypeBlock);
missionTypeButtons[0].UserData = -1;
new GUITextBlock(new Rectangle(120, 0, 120, 20), "Random", GUI.Style, Alignment.BottomLeft, Alignment.TopCenter, missionTypeBlock).UserData = 0;
new GUITextBlock(new Rectangle(120, 0, 80, 20), "Random", GUI.Style, Alignment.BottomLeft, Alignment.TopCenter, missionTypeBlock).UserData = 0;
missionTypeButtons[1] = new GUIButton(new Rectangle(240, 0, 20, 20), ">", Alignment.BottomLeft, GUI.Style, missionTypeBlock);
missionTypeButtons[1] = new GUIButton(new Rectangle(200, 0, 20, 20), ">", Alignment.BottomLeft, GUI.Style, missionTypeBlock);
missionTypeButtons[1].UserData = 1;
missionTypeBlock.Visible = false;
@@ -521,6 +521,8 @@ namespace Barotrauma
missionTypeBlock.GetChild<GUITextBlock>().Text = Mission.MissionTypes[missionTypeIndex];
missionTypeBlock.UserData = missionTypeIndex;
valueChanged = true;
}
public bool ToggleMissionType(GUIButton button, object userData)
@@ -533,6 +535,8 @@ namespace Barotrauma
SetMissionType(missionTypeIndex);
valueChanged = true;
return true;
}
@@ -1107,8 +1111,9 @@ namespace Barotrauma
}
}
catch
catch (Exception e)
{
DebugConsole.ThrowError("Failed to read lobby update message");
return;
}
@@ -1116,7 +1121,11 @@ namespace Barotrauma
if (!GameMain.NetworkMember.Voting.AllowModeVoting)
{
SelectMode(modeList.children[modeIndex], modeList.children[modeIndex].UserData);
//SelectMode(modeList.children[modeIndex], modeList.children[modeIndex].UserData);
modeList.Select(modeIndex, true);
GameModePreset modePreset = modeList.children[modeIndex].UserData as GameModePreset;
missionTypeBlock.Visible = modePreset.Name == "Mission";
}
SetTraitorsEnabled(traitorsEnabled);

View File

@@ -1,3 +1,30 @@
---------------------------------------------------------------------------------------------------------
v0.4.1.0
---------------------------------------------------------------------------------------------------------
- alien ruins and some special monsters/items that only spawn inside them
- improved lighting
- flashlights and flares
- depth charges
- items can be moved from the inventory to cabinets/containers by double clicking
- option to choose mission type in multiplayer
- fixed crashes when using medical syringes in multiplayer
- fixed characters occasionally ''exploding'' or being launched to a random direction when
entering/exiting the sub
- fixed long map seeds always generating the same map
- fixed item loading issues when playing the game on a PC using the Turkish locale (and most likely some
other locales with special uppercase/lowercase rules)
---------------------------------------------------------------------------------------------------------
v0.4.0.3
---------------------------------------------------------------------------------------------------------
- stun syncing bugfix
- fixed dead/unconscious characters being impossible to select in the info menu
- fixed crashes when detonating nitroglyserine by injecting it
- oxygen level deteriorates more slowly when unconscious
- instructions for dealing with broken junction boxes in the tutorial
---------------------------------------------------------------------------------------------------------
v0.4.0.2
---------------------------------------------------------------------------------------------------------

Binary file not shown.