From ac709c594592cca991ec8e5fc7fc2e1d992a3449 Mon Sep 17 00:00:00 2001 From: NotAdam Date: Mon, 28 Jan 2019 16:35:03 +1100 Subject: [PATCH] fix formatting and drop MAX_POLYS back down --- src/world/Actor/BNpc.cpp | 2 +- src/world/Navi/NaviProvider.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/Actor/BNpc.cpp b/src/world/Actor/BNpc.cpp index 853f53bf71..039374b700 100644 --- a/src/world/Actor/BNpc.cpp +++ b/src/world/Actor/BNpc.cpp @@ -177,7 +177,7 @@ void Sapphire::Entity::BNpc::step() // This is probably not a good way to do it but works fine for now float angle = Util::calcAngFrom( getPos().x, getPos().z, stepPos.x, stepPos.z ) + PI; - auto delta = static_cast< float >( Util::getTimeMs() - m_lastTickTime ) / 1000.f; + auto delta = static_cast< float >( Util::getTimeMs() - m_lastTickTime ) / 1000.f; float speed = 7.5f * delta; diff --git a/src/world/Navi/NaviProvider.h b/src/world/Navi/NaviProvider.h index e69b66712a..8547849fde 100644 --- a/src/world/Navi/NaviProvider.h +++ b/src/world/Navi/NaviProvider.h @@ -8,7 +8,7 @@ namespace Sapphire::World::Navi { - const int32_t MAX_POLYS = 256; + const int32_t MAX_POLYS = 32; const int32_t MAX_SMOOTH = 2048; const int32_t NAVMESHSET_MAGIC = 'M' << 24 | 'S' << 16 | 'E' << 8 | 'T'; //'MSET'