1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 05:53:54 +00:00
openmw/apps/opencs/model/world/cell.cpp

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

17 lines
372 B
C++
Raw Normal View History

2013-04-14 15:04:55 +00:00
#include "cell.hpp"
#include <sstream>
void CSMWorld::Cell::load(ESM::ESMReader& esm, bool& isDeleted)
2013-04-14 15:04:55 +00:00
{
ESM::Cell::load(esm, isDeleted, false);
2013-04-14 15:04:55 +00:00
mId = ESM::RefId::stringRefId(mName);
if (isExterior())
2013-04-14 15:04:55 +00:00
{
std::ostringstream stream;
stream << "#" << mData.mX << " " << mData.mY;
mId = ESM::RefId::stringRefId(stream.str());
2013-04-14 15:04:55 +00:00
}
}