mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Removed some unused exception variables
This commit is contained in:
parent
f3004cf858
commit
cea009484e
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue