mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Accept a const CellStore in findInteriorPositionInWorldSpace
This commit is contained in:
parent
41ebf62fb1
commit
300379617e
3 changed files with 3 additions and 3 deletions
|
@ -489,7 +489,7 @@ namespace MWBase
|
|||
// Are we in an exterior or pseudo-exterior cell and it's night?
|
||||
virtual bool isDark() const = 0;
|
||||
|
||||
virtual bool findInteriorPositionInWorldSpace(MWWorld::CellStore* cell, osg::Vec3f& result) = 0;
|
||||
virtual bool findInteriorPositionInWorldSpace(const MWWorld::CellStore* cell, osg::Vec3f& result) = 0;
|
||||
|
||||
/// Teleports \a ptr to the closest reference of \a id (e.g. DivineMarker, PrisonMarker, TempleMarker)
|
||||
/// @note id must be lower case
|
||||
|
|
|
@ -2654,7 +2654,7 @@ namespace MWWorld
|
|||
}
|
||||
}
|
||||
|
||||
bool World::findInteriorPositionInWorldSpace(MWWorld::CellStore* cell, osg::Vec3f& result)
|
||||
bool World::findInteriorPositionInWorldSpace(const MWWorld::CellStore* cell, osg::Vec3f& result)
|
||||
{
|
||||
if (cell->isExterior())
|
||||
return false;
|
||||
|
|
|
@ -592,7 +592,7 @@ namespace MWWorld
|
|||
// Are we in an exterior or pseudo-exterior cell and it's night?
|
||||
virtual bool isDark() const;
|
||||
|
||||
virtual bool findInteriorPositionInWorldSpace(MWWorld::CellStore* cell, osg::Vec3f& result);
|
||||
virtual bool findInteriorPositionInWorldSpace(const MWWorld::CellStore* cell, osg::Vec3f& result);
|
||||
|
||||
/// Teleports \a ptr to the closest reference of \a id (e.g. DivineMarker, PrisonMarker, TempleMarker)
|
||||
/// @note id must be lower case
|
||||
|
|
Loading…
Reference in a new issue