Removed some unused exception variables

This commit is contained in:
MascaraSnake 2016-01-20 21:31:52 +01:00
parent f3004cf858
commit cea009484e
2 changed files with 4 additions and 4 deletions

View file

@ -105,15 +105,15 @@ namespace CodeImp.DoomBuilder.Config
this.threedfloor = cfg.ReadSetting(actionsetting + ".3dfloor", false);
this.threedfloorcustom = cfg.ReadSetting(actionsetting + ".3dfloorcustom", false);
try { this.threedfloorflags = Convert.ToInt32(cfg.ReadSetting(actionsetting + ".3dfloorflags", "0"), 16); }
catch (FormatException e) { this.threedfloorflags = 0; }
catch (FormatException) { this.threedfloorflags = 0; }
this.threedfloorflagsadditions = new Dictionary<string, int>();
foreach (KeyValuePair<string,string> p in flags)
{
int value = 0;
try { value = Convert.ToInt32(cfg.ReadSetting(actionsetting + ".flags" + p.Key + "3dfloorflagsadd", "0"), 16); }
catch (FormatException e) { }
catch (FormatException) { }
try { value -= Convert.ToInt32(cfg.ReadSetting(actionsetting + ".flags" + p.Key + "3dfloorflagsremove", "0"), 16); }
catch (FormatException e) { }
catch (FormatException) { }
this.threedfloorflagsadditions.Add(p.Key, value);
}

View file

@ -778,7 +778,7 @@ namespace CodeImp.DoomBuilder.Map
//Read 3D floor flags from upper back texture
string tex = Back.HighTexture;
try { value = Convert.ToInt32(Back.HighTexture, 16); }
catch (FormatException e) { return; }
catch (FormatException) { return; }
}
else value = General.Map.Config.GetLinedefActionInfo(Action).Get3DFloorFlags(flags);