1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-22 07:21:26 +00:00

Log to detournavigator log cell load and unload

This commit is contained in:
elsid 2018-04-21 14:56:04 +03:00
parent ed3a255f65
commit 02ce4a7e50
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -13,6 +13,7 @@
#include <components/resource/scenemanager.hpp>
#include <components/resource/bulletshape.hpp>
#include <components/detournavigator/navigator.hpp>
#include <components/detournavigator/debug.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
@ -259,6 +260,7 @@ namespace MWWorld
void Scene::unloadCell (CellStoreCollection::iterator iter)
{
Log(Debug::Info) << "Unloading cell " << (*iter)->getCell()->getDescription();
DetourNavigator::log("unload cell ", (*iter)->getCell()->getDescription());
const auto navigator = MWBase::Environment::get().getWorld()->getNavigator();
ListAndResetObjectsVisitor visitor;
@ -309,6 +311,7 @@ namespace MWWorld
if(result.second)
{
Log(Debug::Info) << "Loading cell " << cell->getCell()->getDescription();
DetourNavigator::log("load cell ", cell->getCell()->getDescription());
float verts = ESM::Land::LAND_SIZE;
float worldsize = ESM::Land::REAL_SIZE;