mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 13:51:40 +00:00
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:
parent
8ad4290b26
commit
b193fa9e1c
3 changed files with 6 additions and 4 deletions
|
@ -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)";
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue