Force HiRes replacements to always use worldpanning. Fixes #432

This commit is contained in:
biwa 2020-07-05 09:20:08 +02:00
parent 4b467eeeff
commit 2813a392e7

View file

@ -40,7 +40,11 @@ namespace CodeImp.DoomBuilder.Data
this.sourcescale = scale;
this.sourcesize = Size.Empty;
SetName(name);
// biwa. HiRes replacements always seem to use worldpanning. There is no documentation about it, but not
// setting it can cause issues (see https://github.com/jewalky/UltimateDoomBuilder/issues/432)
worldpanning = true;
// We have no destructor
GC.SuppressFinalize(this);
}
@ -53,6 +57,10 @@ namespace CodeImp.DoomBuilder.Data
this.sourcescale = other.sourcescale;
this.sourcesize = other.sourcesize;
// biwa. HiRes replacements always seem to use worldpanning. There is no documentation about it, but not
// setting it can cause issues (see https://github.com/jewalky/UltimateDoomBuilder/issues/432)
worldpanning = true;
// Copy names
this.name = other.name;
this.filepathname = other.filepathname;