better vanity checks (#1666)

tested that vanity npcs now chat when close, and then on a cooldown
This commit is contained in:
David Markowitz
2024-12-08 14:27:04 -08:00
committed by GitHub
parent 1644d9448d
commit aa7c3b9061
5 changed files with 47 additions and 27 deletions

View File

@@ -38,7 +38,7 @@ void ProximityMonitorComponent::SetProximityRadius(dpEntity* entity, const std::
m_ProximitiesData.insert(std::make_pair(name, entity));
}
const std::unordered_set<LWOOBJID>& ProximityMonitorComponent::GetProximityObjects(const std::string& name) {
const std::unordered_set<LWOOBJID>& ProximityMonitorComponent::GetProximityObjects(const std::string& name) const {
const auto iter = m_ProximitiesData.find(name);
if (iter == m_ProximitiesData.cend()) {