summaryrefslogtreecommitdiff
path: root/src/koopatlas/map.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-07-24 14:10:37 -0500
committerColin Noga <Tempus@chronometry.ca>2012-07-24 14:10:37 -0500
commit45aee4cd0356305fc1a1ebec5d15bc0e17a54b0a (patch)
treef6b80204398bb71e2a3d454005526c216b792074 /src/koopatlas/map.cpp
parent0b935b5b0a4dfba5621d5f925ca088007811fc49 (diff)
downloadkamek-45aee4cd0356305fc1a1ebec5d15bc0e17a54b0a.tar.gz
kamek-45aee4cd0356305fc1a1ebec5d15bc0e17a54b0a.zip
trying laki fixes, linked in anmClr
Diffstat (limited to 'src/koopatlas/map.cpp')
-rw-r--r--src/koopatlas/map.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/koopatlas/map.cpp b/src/koopatlas/map.cpp
index 4d2bc1d..1c2de26 100644
--- a/src/koopatlas/map.cpp
+++ b/src/koopatlas/map.cpp
@@ -387,6 +387,7 @@ void dWMMap_c::renderer_c::renderDoodadLayer(dKPLayer_s *layer, int alpha) {
else
frame = anim->start + (delta * value);
+ float scaleYMod;
// and apply it!
switch (anim->type) {
case dKPDoodad_s::animation_s::X_POS:
@@ -403,6 +404,9 @@ void dWMMap_c::renderer_c::renderDoodadLayer(dKPLayer_s *layer, int alpha) {
break;
case dKPDoodad_s::animation_s::Y_SCALE:
effectiveHeight = (effectiveHeight * frame / 100.0);
+
+ scaleYMod = doodad->height - effectiveHeight;
+ effectiveY += scaleYMod;
break;
case dKPDoodad_s::animation_s::OPACITY:
// TODO