| 2518 | } |
| 2519 | |
| 2520 | bool WorldServer::ClientInfo::needsDamageNotification(RemoteDamageNotification const& rdn) const { |
| 2521 | if (clientId == connectionForEntity(rdn.sourceEntityId) || clientId == connectionForEntity(rdn.damageNotification.targetEntityId)) |
| 2522 | return true; |
| 2523 | |
| 2524 | if (clientSlavesNetVersion.contains(rdn.damageNotification.targetEntityId)) |
| 2525 | return true; |
| 2526 | |
| 2527 | if (clientState.window().contains(Vec2I::floor(rdn.damageNotification.position))) |
| 2528 | return true; |
| 2529 | |
| 2530 | return false; |
| 2531 | } |
| 2532 | |
| 2533 | InteractiveEntityPtr WorldServer::getInteractiveInRange(Vec2F const& targetPosition, Vec2F const& sourcePosition, float maxRange) const { |
| 2534 | return WorldImpl::getInteractiveInRange(m_geometry, m_entityMap, targetPosition, sourcePosition, maxRange); |
no test coverage detected