Merge pull request #435 from EmosewaMC/ghosting-fix

fixed ghosting issue
This commit is contained in:
Jett 2022-02-06 02:25:46 +00:00 committed by GitHub
commit b7d7146821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ void dZoneManager::Initialize(const LWOZONEID& zoneID) {
const auto min = zone->ghostdistance_min != -1.0f ? zone->ghostdistance_min : 100;
const auto max = zone->ghostdistance != -1.0f ? zone->ghostdistance : 100;
EntityManager::Instance()->SetGhostDistanceMax(max + min);
EntityManager::Instance()->SetGhostDistanceMin(min);
EntityManager::Instance()->SetGhostDistanceMin(max);
m_PlayerLoseCoinsOnDeath = zone->PlayerLoseCoinsOnDeath;
}
}