[10147] Dynamic objects not have interactive size.

This commit is contained in:
VladimirMangos 2010-07-04 00:10:45 +04:00
parent 52e4c0ab17
commit 790e3b85bd
2 changed files with 6 additions and 1 deletions

View file

@ -51,6 +51,11 @@ class DynamicObject : public WorldObject
bool IsHostileTo(Unit const* unit) const; bool IsHostileTo(Unit const* unit) const;
bool IsFriendlyTo(Unit const* unit) const; bool IsFriendlyTo(Unit const* unit) const;
float GetObjectBoundingRadius() const // overwrite WorldObject version
{
return 0.0f; // dynamic object not have real interact size
}
bool isVisibleForInState(Player const* u, WorldObject const* viewPoint, bool inVisibleList) const; bool isVisibleForInState(Player const* u, WorldObject const* viewPoint, bool inVisibleList) const;
void Say(int32 textId, uint32 language, uint64 TargetGuid) { MonsterSay(textId,language,TargetGuid); } void Say(int32 textId, uint32 language, uint64 TargetGuid) { MonsterSay(textId,language,TargetGuid); }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10146" #define REVISION_NR "10147"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__