From 479f674875455fbe26e712d22518cc896b020c16 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 7 Oct 2006 20:01:34 +0000 Subject: Resolved some weirdness involving the terms scroll and speed. --- src/map.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index 8e85e6ee..05dea951 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -98,16 +98,14 @@ Map::initializeOverlays() const std::string name = "overlay" + toString(i); Image *img = resman->getImage(getProperty(name + "image")); - float scrollX = getFloatProperty(name + "scrollX"); - //float scrollY = getFloatProperty(name + "scrollY"); + float speedX = getFloatProperty(name + "scrollX"); + float speedY = getFloatProperty(name + "scrollY"); float parallax = getFloatProperty(name + "parallax"); if (img) { - // TODO: For some reason scrollX is passed as speedX and speedY. - // Maybe Crush knows why? mOverlays.push_back( - new AmbientOverlay(img, parallax, 0, 0, scrollX, scrollX)); + new AmbientOverlay(img, parallax, speedX, speedY)); // The AmbientOverlay takes control over the image. img->decRef(); -- cgit v1.2.3-70-g09d2