remove misleading dead assignments on saving, before using vars as out params
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user