Reverted part of revision 02c347cdae86.
[supertux.git] / src / supertux / shrinkfade.cpp
index 5c6a30d..03ca3c1 100644 (file)
 //  You should have received a copy of the GNU General Public License
 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-#include "supertux/main.hpp"
+#include "supertux/globals.hpp"
 #include "supertux/shrinkfade.hpp"
 #include "video/drawing_context.hpp"
 
-ShrinkFade::ShrinkFade(const Vector& dest, float fade_time)
-  : dest(dest), fade_time(fade_time), accum_time(0)
+ShrinkFade::ShrinkFade(const Vector& dest, float fade_time) :
+  dest(dest), 
+  fade_time(fade_time), 
+  accum_time(0),
+  speedleft(),
+  speedright(),
+  speedtop(),
+  speedbottom()
 {
   speedleft = dest.x / fade_time;
   speedright = (SCREEN_WIDTH - dest.x) / fade_time;