#include "sector.hpp"
#include "main.hpp"
#include "object_factory.hpp"
+#include "msg.hpp"
Camera::Camera(Sector* newsector)
: sector(newsector), do_backscrolling(true), scrollchange(NONE)
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") {
update_scroll_normal(elapsed_time);
break;
case AUTOSCROLL:
- update_scroll_autoscroll(elapsed_time);
+ update_scroll_autoscroll();
break;
case SCROLLTO:
update_scroll_to(elapsed_time);
}
void
-Camera::update_scroll_autoscroll(float elapsed_time)
+Camera::update_scroll_autoscroll()
{
Player* player = sector->player;