1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-16 03:40:16 +00:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
308 B
C++
Raw Normal View History

#include "ref.hpp"
#include "cellcoordinates.hpp"
CSMWorld::CellRef::CellRef() : mNew (true), mIdNum(0)
{
mRefNum.mIndex = 0;
mRefNum.mContentFile = 0;
2015-01-09 12:05:16 +01:00
}
std::pair<int, int> CSMWorld::CellRef::getCellIndex() const
{
return CellCoordinates::coordinatesToCellIndex (mPos.pos[0], mPos.pos[1]);
}