summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-04-08 22:39:27 +0200
committerTreeki <treeki@gmail.com>2013-04-08 22:39:27 +0200
commit34c977fe4a91e14b32d974fd1ec7c55aebeda0f8 (patch)
tree47d8e201b97976885db933ed89fd31f7079f81df
parent26fcca821221eba6cf34d5cfdf4779fac2fb7bd8 (diff)
downloadkamek-34c977fe4a91e14b32d974fd1ec7c55aebeda0f8.tar.gz
kamek-34c977fe4a91e14b32d974fd1ec7c55aebeda0f8.zip
fix shop anim bug
Diffstat (limited to '')
-rw-r--r--src/koopatlas/shop.cpp2
1 files changed, 2 insertions, 0 deletions
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))