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
parent 8ad4290b26
commit b193fa9e1c
3 changed files with 6 additions and 4 deletions

View file

@ -390,7 +390,9 @@ keywords
random2 = "int random2[identifier](mask)\nReturns a random integer value between -mask and +mask."; 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."; 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."; 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 //State functions
Light = "Light(str lightname)"; Light = "Light(str lightname)";
Offset = "Offset(int x, int y)"; Offset = "Offset(int x, int y)";

View file

@ -90,7 +90,7 @@ Actor ChexShield : ResistanceRune replaces ResistanceRune 5104
{ {
//$Category "Pickups/Chex Powerups" //$Category "Pickups/Chex Powerups"
//$Sprite ARMXA0 //$Sprite ARMXA0
//$IgnoreRenderstyle //$IgnoreRenderstyle
//$Title "Chex Shield" //$Title "Chex Shield"
//$Color 12 //$Color 12
//$NotAngled //$NotAngled
@ -119,7 +119,7 @@ Actor ChexShield : ResistanceRune replaces ResistanceRune 5104
Height 44 Height 44
Radius 26 Radius 26
RenderStyle None RenderStyle None
Inventory.PickupMessage "Picked up the energized Chex armor!" Inventory.PickupMessage "Picked up the energized Chex armor!"
States States

View file

@ -773,7 +773,7 @@ namespace CodeImp.DoomBuilder
//mxd. Target file is read-only? //mxd. Target file is read-only?
FileInfo info = new FileInfo(newfilepathname); 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) 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)
{ {