1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Accept a const CellStore in getNorthVector

This commit is contained in:
scrawl 2016-02-05 00:25:14 +01:00
parent 11a4a31bfd
commit 41ebf62fb1
3 changed files with 4 additions and 4 deletions

View File

@ -141,7 +141,7 @@ namespace MWBase
virtual bool isCellQuasiExterior() const = 0;
virtual osg::Vec2f getNorthVector (MWWorld::CellStore* cell) = 0;
virtual osg::Vec2f getNorthVector (const MWWorld::CellStore* cell) = 0;
///< get north vector for given interior cell
virtual void getDoorMarkers (MWWorld::CellStore* cell, std::vector<DoorMarker>& out) = 0;

View File

@ -1710,9 +1710,9 @@ namespace MWWorld
mWeatherManager->modRegion(regionid, chances);
}
osg::Vec2f World::getNorthVector (CellStore* cell)
osg::Vec2f World::getNorthVector (const CellStore* cell)
{
MWWorld::Ptr northmarker = cell->search("northmarker");
MWWorld::ConstPtr northmarker = cell->searchConst("northmarker");
if (northmarker.isEmpty())
return osg::Vec2f(0, 1);

View File

@ -227,7 +227,7 @@ namespace MWWorld
virtual bool isCellQuasiExterior() const;
virtual osg::Vec2f getNorthVector (CellStore* cell);
virtual osg::Vec2f getNorthVector (const CellStore* cell);
///< get north vector for given interior cell
virtual void getDoorMarkers (MWWorld::CellStore* cell, std::vector<DoorMarker>& out);