Fixed: checking read-only flag of non-existing files is not a good idea... (fixes a bug introduced in r2520).

Updated ZDoom_DECORATE.cfg (min/max).
Documentation: fixed cosmetic formatting issues in "DECORATE keys" page.
This commit is contained in:
MaxED 2016-02-24 12:25:00 +00:00 committed by spherallic
parent 5971732fcc
commit b0b57e303b
3 changed files with 14 additions and 12 deletions

View file

@ -376,15 +376,17 @@ keywords
A_ShootGun = "A_ShootGun";
A_SPosAttackUseAtkSound = "A_SPosAttackUseAtkSound";
//Mathematical functions
abs = "abs(x)\nReturns the absolute value of x.";
sin = "sin(x)\nTrigonometry function, x must be in degrees.";
cos = "cos(x)\nTrigonometry function, x must be in degrees.";
sqrt = "sqrt(x)\nReturns the square root of x.";
random = "random[identifier](min, max)\nReturns a random integer value between min and max.";
random2 = "random2[identifier](mask)\nReturns a random integer value between -mask and +mask.";
frandom = "frandom[identifier](min, max)\nReturns a random floating point value between min and max.";
randompick = "randompick[identifier](int, ...)\nPicks a number from the numbers placed in it.\nThis can take an unlimited amount of parameters.";
frandompick = "frandompick[identifier](int, ...)\nSimilar to randompick but for float-point values.";
abs = "float abs(x)\nReturns the absolute value of x.";
sin = "float sin(x)\nTrigonometry function, x must be in degrees.";
cos = "float cos(x)\nTrigonometry function, x must be in degrees.";
sqrt = "float sqrt(x)\nReturns the square root of x.";
random = "int random[identifier](min, max)\nReturns a random integer value between min and max.";
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](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)";

View file

@ -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

View file

@ -775,7 +775,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)
{