From 34c977fe4a91e14b32d974fd1ec7c55aebeda0f8 Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 8 Apr 2013 22:39:27 +0200 Subject: fix shop anim bug --- src/koopatlas/shop.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/koopatlas') diff --git a/src/koopatlas/shop.cpp b/src/koopatlas/shop.cpp index 80d2dd6..5dc1937 100644 --- a/src/koopatlas/shop.cpp +++ b/src/koopatlas/shop.cpp @@ -395,6 +395,8 @@ void dWMShop_c::executeState_HideWait() { if (timer > 0) { timer--; scaleEase = -((cos(timer * 3.14 /13.5)-0.9)/timer*10)+1; + if (scaleEase < 0.0f) + scaleEase = 0.0f; } if (!layout.isAnimOn(HIDE_ALL)) -- cgit v1.2.3