X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Feditor%2Ff_main.pas;h=69f29d3e4efaaa098f8a0b699664f4c7691a91fa;hp=591b7e060f9405b89d54aadc8fc1791189bb3ca1;hb=3c82d66d2cc9d0ea466a0129c1455b2fa194c810;hpb=caaa041f34124f7be0c8915e10f7849c4a030b1d diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas index 591b7e0..69f29d3 100644 --- a/src/editor/f_main.pas +++ b/src/editor/f_main.pas @@ -2835,14 +2835,8 @@ begin gAlphaTriggerArea := ALPHA_AREA; gAlphaMonsterRect := config.ReadInt('Editor', 'MonsterRectAlpha', 0); gAlphaAreaRect := config.ReadInt('Editor', 'AreaRectAlpha', 0); - if config.ReadInt('Editor', 'Scale', 0) = 1 then - Scale := 2 - else - Scale := 1; - if config.ReadInt('Editor', 'DotSize', 0) = 1 then - DotSize := 2 - else - DotSize := 1; + Scale := Max(config.ReadInt('Editor', 'Scale', 1), 1); + DotSize := Max(config.ReadInt('Editor', 'DotSize', 1), 1); OpenDialog.InitialDir := config.ReadStr('Editor', 'LastOpenDir', MapsDir); SaveDialog.InitialDir := config.ReadStr('Editor', 'LastSaveDir', MapsDir);