forked from mirror/openmw-tes3mp
f1a58994c6
Conflicts: apps/opencs/model/world/columns.hpp apps/opencs/model/world/commands.cpp apps/opencs/model/world/commands.hpp apps/opencs/model/world/ref.cpp apps/opencs/view/world/dialoguesubview.cpp apps/opencs/view/world/dialoguesubview.hpp apps/opencs/view/world/util.cpp components/esm/cellref.hpp
21 lines
366 B
C++
21 lines
366 B
C++
|
|
#include "ref.hpp"
|
|
|
|
#include <cmath>
|
|
|
|
CSMWorld::CellRef::CellRef()
|
|
{
|
|
mRefNum.mIndex = 0;
|
|
mRefNum.mContentFile = 0;
|
|
}
|
|
<<<<<<< HEAD
|
|
|
|
std::pair<int, int> CSMWorld::CellRef::getCellIndex() const
|
|
{
|
|
const int cellSize = 8192;
|
|
|
|
return std::make_pair (
|
|
std::floor (mPos.pos[0]/cellSize), std::floor (mPos.pos[1]/cellSize));
|
|
}
|
|
=======
|
|
>>>>>>> master
|