Skip to content

Commit

Permalink
Launcher: Fixed ArgumentOutOfRange exception related to duplicate val…
Browse files Browse the repository at this point in the history
…ues between the control and config, also renamed duplex to duplicate to more accurately represent what it does (at the advice of Edward)
  • Loading branch information
Kyle873 committed Aug 23, 2014
1 parent 400657b commit fc23e41
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Utilities/Doom RPG Launcher/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class Config
public int players = 2;
public string hostname = string.Empty;
public bool extraTics = false;
public int duplex = 0;
public int duplicate = 1;

// Warnings
public bool wipeWarning = false;
Expand Down
44 changes: 22 additions & 22 deletions Utilities/Doom RPG Launcher/FormMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Utilities/Doom RPG Launcher/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace DoomRPG
{
public partial class FormMain : Form
{
Version version = new Version(0, 9, 2);
Version version = new Version(0, 9, 3);
Config config = new Config();
string currentBranch = string.Empty;
List<PatchInfo> patches = new List<PatchInfo>();
Expand Down Expand Up @@ -249,7 +249,7 @@ private void LoadControls()
numericUpDownPlayers.Value = config.players;
textBoxHostname.Text = config.hostname;
checkBoxExtraTics.Checked = config.extraTics;
numericUpDownDuplex.Value = config.duplex;
numericUpDownDuplicate.Value = config.duplicate;
textBoxCustomCommands.Text = config.customCommands;
}

Expand Down Expand Up @@ -285,7 +285,7 @@ private void SaveControls()
config.players = (int)numericUpDownPlayers.Value;
config.hostname = textBoxHostname.Text;
config.extraTics = checkBoxExtraTics.Checked;
config.duplex = (int)numericUpDownDuplex.Value;
config.duplicate = (int)numericUpDownDuplicate.Value;
config.customCommands = textBoxCustomCommands.Text;
}

Expand Down Expand Up @@ -515,8 +515,8 @@ private string BuildCommandLine()
// Server Options
if (config.extraTics)
cmdline += " -extratic";
if (config.duplex > 0)
cmdline += " -dup " + config.duplex;
if (config.duplicate > 0)
cmdline += " -dup " + config.duplicate;
}
}

Expand Down
4 changes: 2 additions & 2 deletions Utilities/Doom RPG Launcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 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.9.2.0")]
[assembly: AssemblyFileVersion("0.9.2.0")]
[assembly: AssemblyVersion("0.9.3.0")]
[assembly: AssemblyFileVersion("0.9.3.0")]

0 comments on commit fc23e41

Please sign in to comment.