mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-23 01:21:39 +00:00
Log to detournavigator log cell load and unload
This commit is contained in:
parent
ed3a255f65
commit
02ce4a7e50
@ -13,6 +13,7 @@
|
|||||||
#include <components/resource/scenemanager.hpp>
|
#include <components/resource/scenemanager.hpp>
|
||||||
#include <components/resource/bulletshape.hpp>
|
#include <components/resource/bulletshape.hpp>
|
||||||
#include <components/detournavigator/navigator.hpp>
|
#include <components/detournavigator/navigator.hpp>
|
||||||
|
#include <components/detournavigator/debug.hpp>
|
||||||
|
|
||||||
#include "../mwbase/environment.hpp"
|
#include "../mwbase/environment.hpp"
|
||||||
#include "../mwbase/world.hpp"
|
#include "../mwbase/world.hpp"
|
||||||
@ -259,6 +260,7 @@ namespace MWWorld
|
|||||||
void Scene::unloadCell (CellStoreCollection::iterator iter)
|
void Scene::unloadCell (CellStoreCollection::iterator iter)
|
||||||
{
|
{
|
||||||
Log(Debug::Info) << "Unloading cell " << (*iter)->getCell()->getDescription();
|
Log(Debug::Info) << "Unloading cell " << (*iter)->getCell()->getDescription();
|
||||||
|
DetourNavigator::log("unload cell ", (*iter)->getCell()->getDescription());
|
||||||
|
|
||||||
const auto navigator = MWBase::Environment::get().getWorld()->getNavigator();
|
const auto navigator = MWBase::Environment::get().getWorld()->getNavigator();
|
||||||
ListAndResetObjectsVisitor visitor;
|
ListAndResetObjectsVisitor visitor;
|
||||||
@ -309,6 +311,7 @@ namespace MWWorld
|
|||||||
if(result.second)
|
if(result.second)
|
||||||
{
|
{
|
||||||
Log(Debug::Info) << "Loading cell " << cell->getCell()->getDescription();
|
Log(Debug::Info) << "Loading cell " << cell->getCell()->getDescription();
|
||||||
|
DetourNavigator::log("load cell ", cell->getCell()->getDescription());
|
||||||
|
|
||||||
float verts = ESM::Land::LAND_SIZE;
|
float verts = ESM::Land::LAND_SIZE;
|
||||||
float worldsize = ESM::Land::REAL_SIZE;
|
float worldsize = ESM::Land::REAL_SIZE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user