From 0a13799142988f65a985159ab77cb3a1dea65b5b Mon Sep 17 00:00:00 2001
From: MaxED <j.maxed@gmail.com>
Date: Fri, 12 Jul 2013 09:58:36 +0000
Subject: [PATCH] Fixed a couple inaccuracies in game configurations.

---
 Build/Configurations/Includes/Doom_misc.cfg      |  4 ++--
 Build/Configurations/Includes/Hexen_linedefs.cfg |  2 +-
 Build/Configurations/Includes/UDMF_misc.cfg      |  2 +-
 Build/Configurations/Includes/ZDoom_linedefs.cfg | 12 +++++++++---
 Source/Core/Windows/ThingEditForm.cs             |  4 +---
 5 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/Build/Configurations/Includes/Doom_misc.cfg b/Build/Configurations/Includes/Doom_misc.cfg
index ac409c499..26e810e93 100644
--- a/Build/Configurations/Includes/Doom_misc.cfg
+++ b/Build/Configurations/Includes/Doom_misc.cfg
@@ -21,8 +21,8 @@ linedefflags
 	16 = "Lower Unpegged";
 	32 = "Secret";
 	64 = "Block Sound";
-	128 = "Hidden";
-	256 = "Shown";
+	128 = "Not shown on automap";
+	256 = "Initially shown on automap";
 }
 
 
diff --git a/Build/Configurations/Includes/Hexen_linedefs.cfg b/Build/Configurations/Includes/Hexen_linedefs.cfg
index 40293da57..28c82e192 100644
--- a/Build/Configurations/Includes/Hexen_linedefs.cfg
+++ b/Build/Configurations/Includes/Hexen_linedefs.cfg
@@ -305,7 +305,7 @@ line
 		
 		arg0
 		{
-			title = "Set Line ID";
+			title = "Line ID";
 		}
 	}
 }
diff --git a/Build/Configurations/Includes/UDMF_misc.cfg b/Build/Configurations/Includes/UDMF_misc.cfg
index 10d49b950..d71602726 100644
--- a/Build/Configurations/Includes/UDMF_misc.cfg
+++ b/Build/Configurations/Includes/UDMF_misc.cfg
@@ -79,7 +79,7 @@ linedefflags
 	secret = "Secret";
 	blocksound = "Block sound";
 	dontdraw = "Hidden";
-	mapped = "Initially mapped";
+	mapped = "Initially shown on automap";
 }
 
 
diff --git a/Build/Configurations/Includes/ZDoom_linedefs.cfg b/Build/Configurations/Includes/ZDoom_linedefs.cfg
index 11aa75523..c0e17f4cd 100644
--- a/Build/Configurations/Includes/ZDoom_linedefs.cfg
+++ b/Build/Configurations/Includes/ZDoom_linedefs.cfg
@@ -571,7 +571,7 @@ zdoom
 			}
 			arg4
 			{
-				title = "Set Line ID High";
+				title = "Line ID High";
 			}
 		}
 		182
@@ -1606,12 +1606,18 @@ zdoom
 			
 			arg0
 			{
-				title = "Sector Tag";
-				type = 13;
+				title = "Line ID";
 			}
 			arg1
 			{
 				title = "Flags";
+				type = 12;
+				enum
+				{
+					1 = "Transfer light level to front side";
+					2 = "Transfer light level to back side";
+					4 = "Ignore fake contrast";
+				}
 			}
 		}
 		
diff --git a/Source/Core/Windows/ThingEditForm.cs b/Source/Core/Windows/ThingEditForm.cs
index fac1de912..6779644b2 100644
--- a/Source/Core/Windows/ThingEditForm.cs
+++ b/Source/Core/Windows/ThingEditForm.cs
@@ -417,7 +417,6 @@ namespace CodeImp.DoomBuilder.Windows
             Vector2D delta = new Vector2D((float)posX.GetResult((int)initialPosition.x) - initialPosition.x, (float)posY.GetResult((int)initialPosition.y) - initialPosition.y);
             bool hasAcs = Array.IndexOf(GZBuilder.GZGeneral.ACS_SPECIALS, action.Value) != -1;
             bool hasArg0str = General.Map.UDMF && !action.Empty && hasAcs && arg0str.Text.Length > 0;
-			Random rnd = new Random();
 
 			// Go for all the things
 			foreach(Thing t in things)
@@ -428,7 +427,7 @@ namespace CodeImp.DoomBuilder.Windows
 				// Coordination
 				//mxd
 				if(cbRandomAngle.Checked) {
-					t.Rotate(rnd.Next(0, 359));
+					t.Rotate(General.Random(0, 359));
 				} else {
 					t.Rotate(angle.GetResult(t.AngleDoom));
 				}
@@ -447,7 +446,6 @@ namespace CodeImp.DoomBuilder.Windows
 				}
 
 				// Action/tags
-				//t.Tag = tag.GetResult(t.Tag);
 				t.Tag = tagSelector.GetTag(t.Tag); //mxd
 				if(!action.Empty) t.Action = action.Value;
 
-- 
GitLab