don't multiply by scale here since it's already applied

This commit is contained in:
Ellpeck 2020-05-30 20:41:24 +02:00
parent ad8216286b
commit 234eaa4f72

View file

@ -57,7 +57,7 @@ namespace ThemeParkClicker {
private static IEnumerator<IWait> WobbleElement(CustomDrawGroup element, float intensity = 0.01F) {
var sin = 0F;
while (sin < MathHelper.Pi) {
element.ScaleOrigin(1 + (float) Math.Sin(sin) * intensity * element.Scale);
element.ScaleOrigin(1 + (float) Math.Sin(sin) * intensity);
sin += 0.2F;
yield return new WaitEvent(CoroutineEvents.Update);
}