Fixed breaking compatibility with DB1 settings files

This commit is contained in:
codeimp 2009-03-17 13:40:34 +00:00
parent 94d7b1b9c1
commit ff2877181c

View file

@ -132,8 +132,8 @@ namespace CodeImp.DoomBuilder.Editing
cfg.WriteSetting(path + ".backsource", backsource);
cfg.WriteSetting(path + ".backoffsetx", backoffsetx);
cfg.WriteSetting(path + ".backoffsety", backoffsety);
cfg.WriteSetting(path + ".backscalex", backscalex);
cfg.WriteSetting(path + ".backscaley", backscaley);
cfg.WriteSetting(path + ".backscalex", (int)(backscalex * 100.0f));
cfg.WriteSetting(path + ".backscaley", (int)(backscaley * 100.0f));
cfg.WriteSetting(path + ".gridsize", gridsize);
}
@ -145,8 +145,8 @@ namespace CodeImp.DoomBuilder.Editing
backsource = cfg.ReadSetting(path + ".backsource", 0);
backoffsetx = cfg.ReadSetting(path + ".backoffsetx", 0);
backoffsety = cfg.ReadSetting(path + ".backoffsety", 0);
backscalex = cfg.ReadSetting(path + ".backscalex", 1.0f);
backscaley = cfg.ReadSetting(path + ".backscaley", 1.0f);
backscalex = (float)cfg.ReadSetting(path + ".backscalex", 100) / 100.0f;
backscaley = (float)cfg.ReadSetting(path + ".backscaley", 100) / 100.0f;
gridsize = cfg.ReadSetting(path + ".gridsize", DEFAULT_GRID_SIZE);
// Setup