From ea1f38c121c8a9025b413bd9fdb5472a3b4c3093 Mon Sep 17 00:00:00 2001 From: eos Date: Sun, 24 Feb 2013 00:47:50 +0000 Subject: [PATCH] - Drag effect crash issues have been resolved, enabling effects by default again. - Added an LOS check to the drag effects to hide effects on higher floors from players. --- Scripts/Commands/DragEffects.cs | 11 +---------- Server/Mobile.cs | 4 ++-- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Scripts/Commands/DragEffects.cs b/Scripts/Commands/DragEffects.cs index ac5e4fcc8..8ec537b89 100644 --- a/Scripts/Commands/DragEffects.cs +++ b/Scripts/Commands/DragEffects.cs @@ -3,20 +3,11 @@ using Server; namespace Server.Commands { - /* - * Temporary system to allow on-the-fly enabling and disabling - * of the drag effects, for investigating client crashes. - * - * By default the effects will be disabled. - */ public static class DragEffects { public static void Initialize() { - // Disable effects - Mobile.DragEffects = false; - - CommandSystem.Register( "DragEffects", AccessLevel.Administrator, new CommandEventHandler( DragEffects_OnCommand ) ); + CommandSystem.Register( "DragEffects", AccessLevel.Developer, new CommandEventHandler( DragEffects_OnCommand ) ); } [Usage( "DragEffects [enable=false]" )] diff --git a/Server/Mobile.cs b/Server/Mobile.cs index c4041500f..af81a7788 100644 --- a/Server/Mobile.cs +++ b/Server/Mobile.cs @@ -4369,7 +4369,7 @@ namespace Server foreach( NetState ns in eable ) { - if( ns.Mobile != from && ns.Mobile.CanSee( from ) && ns.Mobile.CanSee( root ) ) + if( ns.Mobile != from && ns.Mobile.CanSee( from ) && ns.Mobile.InLOS( from ) && ns.Mobile.CanSee( root ) ) { if( p == null ) { @@ -4509,7 +4509,7 @@ namespace Server foreach( NetState ns in eable ) { - if( ns.Mobile != this && ns.Mobile.CanSee( this ) && ns.Mobile.CanSee( root ) ) + if( ns.Mobile != this && ns.Mobile.CanSee( this ) && ns.Mobile.InLOS( this ) && ns.Mobile.CanSee( root ) ) { if( p == null ) {