1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-07 11:17:46 +00:00

fix formatting and drop MAX_POLYS back down

This commit is contained in:
NotAdam 2019-01-28 16:35:03 +11:00
parent 0b9e1fb1ab
commit ac709c5945
2 changed files with 2 additions and 2 deletions

View file

@ -177,7 +177,7 @@ void Sapphire::Entity::BNpc::step()
// This is probably not a good way to do it but works fine for now // 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; 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; float speed = 7.5f * delta;

View file

@ -8,7 +8,7 @@
namespace Sapphire::World::Navi 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 MAX_SMOOTH = 2048;
const int32_t NAVMESHSET_MAGIC = 'M' << 24 | 'S' << 16 | 'E' << 8 | 'T'; //'MSET' const int32_t NAVMESHSET_MAGIC = 'M' << 24 | 'S' << 16 | 'E' << 8 | 'T'; //'MSET'