mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Accept a const CellStore in getNorthVector
This commit is contained in:
parent
11a4a31bfd
commit
41ebf62fb1
@ -141,7 +141,7 @@ namespace MWBase
|
|||||||
|
|
||||||
virtual bool isCellQuasiExterior() const = 0;
|
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
|
///< get north vector for given interior cell
|
||||||
|
|
||||||
virtual void getDoorMarkers (MWWorld::CellStore* cell, std::vector<DoorMarker>& out) = 0;
|
virtual void getDoorMarkers (MWWorld::CellStore* cell, std::vector<DoorMarker>& out) = 0;
|
||||||
|
@ -1710,9 +1710,9 @@ namespace MWWorld
|
|||||||
mWeatherManager->modRegion(regionid, chances);
|
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())
|
if (northmarker.isEmpty())
|
||||||
return osg::Vec2f(0, 1);
|
return osg::Vec2f(0, 1);
|
||||||
|
@ -227,7 +227,7 @@ namespace MWWorld
|
|||||||
|
|
||||||
virtual bool isCellQuasiExterior() const;
|
virtual bool isCellQuasiExterior() const;
|
||||||
|
|
||||||
virtual osg::Vec2f getNorthVector (CellStore* cell);
|
virtual osg::Vec2f getNorthVector (const CellStore* cell);
|
||||||
///< get north vector for given interior cell
|
///< get north vector for given interior cell
|
||||||
|
|
||||||
virtual void getDoorMarkers (MWWorld::CellStore* cell, std::vector<DoorMarker>& out);
|
virtual void getDoorMarkers (MWWorld::CellStore* cell, std::vector<DoorMarker>& out);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user