From 45aee4cd0356305fc1a1ebec5d15bc0e17a54b0a Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Tue, 24 Jul 2012 14:10:37 -0500 Subject: trying laki fixes, linked in anmClr --- src/koopatlas/map.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/koopatlas/map.cpp') 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 -- cgit v1.2.3