1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 15:23:58 +00:00
openmw/apps/opencs/model/world/cell.cpp

17 lines
347 B
C++
Raw Normal View History

2013-04-14 15:04:55 +00:00
#include "cell.hpp"
#include <sstream>
2022-09-22 18:26:05 +00:00
void CSMWorld::Cell::load(ESM::ESMReader& esm, bool& isDeleted)
2013-04-14 15:04:55 +00:00
{
2022-09-22 18:26:05 +00:00
ESM::Cell::load(esm, isDeleted, false);
2013-04-14 15:04:55 +00:00
mId = 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
}
}