Mercurial > fife-parpg
diff engine/core/model/structures/map.cpp @ 549:c9113e23b004
*Removed the ExactModellCoordinate object from the camera constructor.
Attention: Little API change to the camera/map.
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 11 Jun 2010 21:29:58 +0000 |
parents | 9d94f4676d17 |
children | 2032ec27b851 |
line wrap: on
line diff
--- a/engine/core/model/structures/map.cpp Fri Jun 11 21:10:40 2010 +0000 +++ b/engine/core/model/structures/map.cpp Fri Jun 11 21:29:58 2010 +0000 @@ -170,8 +170,7 @@ } } - Camera* Map::addCamera(const std::string &id, Layer *layer, - const Rect& viewport, const ExactModelCoordinate& emc) { + Camera* Map::addCamera(const std::string &id, Layer *layer, const Rect& viewport) { if (layer == NULL) { throw NotSupported("Must have valid layer for camera"); } @@ -182,7 +181,7 @@ } // create new camera and add to list of cameras - Camera* camera = new Camera(id, layer, viewport, emc, m_renderbackend, m_imagepool, m_animpool); + Camera* camera = new Camera(id, layer, viewport, m_renderbackend, m_imagepool, m_animpool); m_cameras.push_back(camera); std::vector<RendererBase*>::iterator iter = m_renderers.begin();