Skip to content

Commit

Permalink
Fix TweakScale interaction
Browse files Browse the repository at this point in the history
Resource amounts should account for scale
  • Loading branch information
blowfishpro committed Jun 18, 2016
1 parent c39f4f2 commit 4a19a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion B9PartSwitch/PartSwitch/PartSubtype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public void AddResources(bool fillTanks)
{
foreach (TankResource resource in tankType.resources)
{
float amount = TotalVolume * resource.unitsPerVolume;
float amount = TotalVolume * resource.unitsPerVolume * parent.VolumeScale;
Part.AddOrCreateResource(resource.resourceDefinition, amount, fillTanks ? amount : -1f);
}
}
Expand Down

1 comment on commit 4a19a41

@blowfishpro
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #26

Please sign in to comment.