mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 09:32:34 +00:00
Added safety check for previous DB1 .dbs file compatibility change
This commit is contained in:
parent
cf7b69c8f6
commit
209c73efa4
1 changed files with 4 additions and 2 deletions
|
@ -68,8 +68,10 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
// Show background offset
|
||||
backoffsetx.Value = General.Map.Grid.BackgroundX;
|
||||
backoffsety.Value = General.Map.Grid.BackgroundY;
|
||||
backscalex.Value = (int)(General.Map.Grid.BackgroundScaleX * 100.0f);
|
||||
backscaley.Value = (int)(General.Map.Grid.BackgroundScaleY * 100.0f);
|
||||
int scalex = (int)(General.Map.Grid.BackgroundScaleX * 100.0f);
|
||||
int scaley = (int)(General.Map.Grid.BackgroundScaleY * 100.0f);
|
||||
backscalex.Value = General.Clamp(scalex, (int)backscalex.Minimum, (int)backscalex.Maximum);
|
||||
backscaley.Value = General.Clamp(scaley, (int)backscaley.Minimum, (int)backscaley.Maximum);
|
||||
}
|
||||
|
||||
// Show Background changed
|
||||
|
|
Loading…
Reference in a new issue