mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Target logic at this
and adjust variables
This commit is contained in:
parent
375ecf92ed
commit
0aad0c7c6c
@ -144,12 +144,12 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
|
|
||||||
foreach (var (_, prop) in this.GetSettingsSourceProperties())
|
foreach (var (_, prop) in this.GetSettingsSourceProperties())
|
||||||
{
|
{
|
||||||
var origBindable = (IBindable)prop.GetValue(this);
|
var targetBindable = (IBindable)prop.GetValue(this);
|
||||||
var copyBindable = (IBindable)prop.GetValue(copy);
|
var sourceBindable = (IBindable)prop.GetValue(them);
|
||||||
|
|
||||||
// we only care about changes that have been made away from defaults.
|
// we only care about changes that have been made away from defaults.
|
||||||
if (!origBindable.IsDefault)
|
if (!sourceBindable.IsDefault)
|
||||||
copy.CopyAdjustedSetting(copyBindable, origBindable);
|
CopyAdjustedSetting(targetBindable, sourceBindable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user