Background can now render three images: Top, Center and Bottom
[supertux.git] / src / object / camera.cpp
index 99e5a6e..8a4a9c0 100644 (file)
@@ -32,6 +32,7 @@
 #include "sector.hpp"
 #include "main.hpp"
 #include "object_factory.hpp"
+#include "msg.hpp"
 
 Camera::Camera(Sector* newsector)
   : sector(newsector), do_backscrolling(true), scrollchange(NONE)
@@ -68,7 +69,7 @@ Camera::parse(const lisp::Lisp& reader)
 
     autoscrollPath = Path::GetByName(use_path);
     if (autoscrollPath == NULL) { 
-      std::cerr << "Warning: Path for autoscroll camera not found! Make sure that the name is spelled correctly and that the path is initialized before the platform in the level file!" << std::endl;
+      msg_warning("Path for autoscroll camera not found! Make sure that the name is spelled correctly and that the path is initialized before the platform in the level file!");
     }
 
   } else if(modename == "manual") {
@@ -140,7 +141,7 @@ Camera::update(float elapsed_time)
       update_scroll_normal(elapsed_time);
       break;
     case AUTOSCROLL:
-      update_scroll_autoscroll(elapsed_time);
+      update_scroll_autoscroll();
       break;
     case SCROLLTO:
       update_scroll_to(elapsed_time);
@@ -268,7 +269,7 @@ Camera::update_scroll_normal(float elapsed_time)
 }
 
 void
-Camera::update_scroll_autoscroll(float elapsed_time)
+Camera::update_scroll_autoscroll()
 {
   Player* player = sector->player;