diff --git a/Build/Scripting/ZDoom_DECORATE.cfg b/Build/Scripting/ZDoom_DECORATE.cfg index 06effbda..1ae6fbac 100644 --- a/Build/Scripting/ZDoom_DECORATE.cfg +++ b/Build/Scripting/ZDoom_DECORATE.cfg @@ -390,7 +390,9 @@ keywords random2 = "int random2[identifier](mask)\nReturns a random integer value between -mask and +mask."; frandom = "float frandom[identifier](min, max)\nReturns a random floating point value between min and max."; randompick = "int randompick[identifier](int, ...)\nPicks a number from the numbers placed in it.\nThis can take an unlimited amount of parameters."; - frandompick = "float frandompick[identifier](int, ...)\nSimilar to randompick but for float-point values."; + frandompick = "float frandompick[identifier](float, ...)\nPicks a number from the numbers placed in it.\nThis can take an unlimited amount of parameters."; + min = "float min(float or int, ...)\nGets the smallest value of all values listed.\nCan take any amount of numbers, and can solve both ints and floats."; + max = "float max(float or int, ...)\nGets the largest value of all values listed.\nCan take any amount of numbers, and can solve both ints and floats."; //State functions Light = "Light(str lightname)"; Offset = "Offset(int x, int y)"; diff --git a/Help/gc_decoratekeys.html b/Help/gc_decoratekeys.html index 772c7f4e..7ea42aa6 100644 --- a/Help/gc_decoratekeys.html +++ b/Help/gc_decoratekeys.html @@ -90,7 +90,7 @@ Actor ChexShield : ResistanceRune replaces ResistanceRune 5104 { //$Category "Pickups/Chex Powerups" //$Sprite ARMXA0 - //$IgnoreRenderstyle + //$IgnoreRenderstyle //$Title "Chex Shield" //$Color 12 //$NotAngled @@ -119,7 +119,7 @@ Actor ChexShield : ResistanceRune replaces ResistanceRune 5104 Height 44 Radius 26 - RenderStyle None + RenderStyle None Inventory.PickupMessage "Picked up the energized Chex armor!" States diff --git a/Source/Core/General/MapManager.cs b/Source/Core/General/MapManager.cs index 689f1530..01874a84 100644 --- a/Source/Core/General/MapManager.cs +++ b/Source/Core/General/MapManager.cs @@ -773,7 +773,7 @@ namespace CodeImp.DoomBuilder //mxd. Target file is read-only? FileInfo info = new FileInfo(newfilepathname); - if(info.IsReadOnly) + if(info.Exists && info.IsReadOnly) { if(General.ShowWarningMessage("Unable to save the map: target file is read-only.\nRemove read-only flag and save the map anyway?", MessageBoxButtons.YesNo) == DialogResult.Yes) {