Changeset 237 for trunk/src/game/DynamicObject.cpp
- Timestamp:
- 11/19/08 13:49:31 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/DynamicObject.cpp
r233 r237 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 15 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 … … 71 71 } 72 72 73 Set UInt32Value( OBJECT_FIELD_ENTRY, spellId);73 SetEntry(spellId); 74 74 SetFloatValue( OBJECT_FIELD_SCALE_X, 1 ); 75 75 SetUInt64Value( DYNAMICOBJECT_CASTER, caster->GetGUID() ); … … 154 154 bool DynamicObject::isVisibleForInState(Player const* u, bool inVisibleList) const 155 155 { 156 return IsInWorld() && u->IsInWorld() /*&& IsWithinDistInMap(u,World::GetMaxVisibleDistanceForObject()+(inVisibleList ? World::GetVisibleObjectGreyDistance() : 0.0f))*/; 156 return IsInWorld() && u->IsInWorld() 157 && (IsWithinDistInMap(u,World::GetMaxVisibleDistanceForObject()+(inVisibleList ? World::GetVisibleObjectGreyDistance() : 0.0f)) 158 || GetCasterGUID() == u->GetGUID()); 157 159 }