Correctly update visibility for transports, author GriffonHeart
This commit is contained in:
@@ -21754,6 +21754,14 @@ inline void UpdateVisibilityOf_helper(std::set<uint64>& s64, T* target, std::set
|
||||
s64.insert(target->GetGUID());
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void UpdateVisibilityOf_helper(std::set<uint64>& s64, GameObject* target, std::set<Unit*>& /*v*/)
|
||||
{
|
||||
// Don't update only GAMEOBJECT_TYPE_TRANSPORT (or all transports and destructible buildings?)
|
||||
if ((target->GetGOInfo()->type != GAMEOBJECT_TYPE_TRANSPORT))
|
||||
s64.insert(target->GetGUID());
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void UpdateVisibilityOf_helper(std::set<uint64>& s64, Creature* target, std::set<Unit*>& v)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user