remove misleading dead assignments on saving, before using vars as out params

This commit is contained in:
Chris Forbes
2011-09-24 20:32:57 +12:00
parent a1fc76acc3
commit 657e8ad250
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
panel.GetWidget<ButtonWidget>("BACK_BUTTON").OnClick = () => panel.GetWidget<ButtonWidget>("BACK_BUTTON").OnClick = () =>
{ {
playerSettings.Name = nameTextfield.Text; playerSettings.Name = nameTextfield.Text;
int x = graphicsSettings.WindowedSize.X, y = graphicsSettings.WindowedSize.Y; int x, y;
int.TryParse(windowWidth.Text, out x); int.TryParse(windowWidth.Text, out x);
int.TryParse(windowHeight.Text, out y); int.TryParse(windowHeight.Text, out y);
graphicsSettings.WindowedSize = new int2(x,y); graphicsSettings.WindowedSize = new int2(x,y);

View File

@@ -112,7 +112,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
bg.GetWidget<ButtonWidget>("BUTTON_CLOSE").OnClick = () => bg.GetWidget<ButtonWidget>("BUTTON_CLOSE").OnClick = () =>
{ {
int x = gs.WindowedSize.X, y = gs.WindowedSize.Y; int x, y;
int.TryParse(windowWidth.Text, out x); int.TryParse(windowWidth.Text, out x);
int.TryParse(windowHeight.Text, out y); int.TryParse(windowHeight.Text, out y);
gs.WindowedSize = new int2(x,y); gs.WindowedSize = new int2(x,y);