From cd88426d7d18c19db05b71dfbff0baf945e8a0b1 Mon Sep 17 00:00:00 2001 From: AriAvery <41122212+AriAvery@users.noreply.github.com> Date: Wed, 6 Feb 2019 23:28:17 +0100 Subject: [PATCH] Update BNpc.cpp --- src/world/Actor/BNpc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/world/Actor/BNpc.cpp b/src/world/Actor/BNpc.cpp index 8a1a96a2..c1bfe2e5 100644 --- a/src/world/Actor/BNpc.cpp +++ b/src/world/Actor/BNpc.cpp @@ -523,9 +523,8 @@ void Sapphire::Entity::BNpc::update( int64_t currTime ) if( distance > minActorDistance ) { - uint64_t tick = Util::getTimeMs(); auto pTeriMgr = m_pFw->get< World::Manager::TerritoryMgr >(); - if ( ( tick - m_lastAttack ) > 600 && pTeriMgr->isDefaultTerritory( getCurrentZone()->getTerritoryTypeId() ) ) + if ( ( currTime - m_lastAttack ) > 600 && pTeriMgr->isDefaultTerritory( getCurrentZone()->getTerritoryTypeId() ) ) moveTo( pHatedActor->getPos() ); } else