forked from mirror/openmw-tes3mp
commit
3c9f3a0f7f
3 changed files with 5 additions and 8 deletions
|
@ -149,9 +149,9 @@ void Objects::removeCell(const MWWorld::CellStore* store)
|
|||
|
||||
if (ptr.getClass().isNpc() && ptr.getRefData().getCustomData())
|
||||
{
|
||||
MWWorld::InventoryStore& store = ptr.getClass().getInventoryStore(ptr);
|
||||
store.setInvListener(NULL, ptr);
|
||||
store.setContListener(NULL);
|
||||
MWWorld::InventoryStore& invStore = ptr.getClass().getInventoryStore(ptr);
|
||||
invStore.setInvListener(NULL, ptr);
|
||||
invStore.setContListener(NULL);
|
||||
}
|
||||
|
||||
mObjects.erase(iter++);
|
||||
|
|
|
@ -335,7 +335,4 @@ namespace ESM
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
const int Land::LAND_SIZE;
|
||||
|
||||
}
|
||||
|
|
|
@ -240,8 +240,8 @@ namespace ESMTerrain
|
|||
// Only relevant for chunks smaller than (contained in) one cell
|
||||
rowStart += (origin.x() - startCellX) * ESM::Land::LAND_SIZE;
|
||||
colStart += (origin.y() - startCellY) * ESM::Land::LAND_SIZE;
|
||||
int rowEnd = std::min(static_cast<int>(rowStart + std::min(1.f, size) * (ESM::Land::LAND_SIZE-1) + 1), ESM::Land::LAND_SIZE);
|
||||
int colEnd = std::min(static_cast<int>(colStart + std::min(1.f, size) * (ESM::Land::LAND_SIZE-1) + 1), ESM::Land::LAND_SIZE);
|
||||
int rowEnd = std::min(static_cast<int>(rowStart + std::min(1.f, size) * (ESM::Land::LAND_SIZE-1) + 1), static_cast<int>(ESM::Land::LAND_SIZE));
|
||||
int colEnd = std::min(static_cast<int>(colStart + std::min(1.f, size) * (ESM::Land::LAND_SIZE-1) + 1), static_cast<int>(ESM::Land::LAND_SIZE));
|
||||
|
||||
vertY = vertY_;
|
||||
for (int col=colStart; col<colEnd; col += increment)
|
||||
|
|
Loading…
Reference in a new issue