Fixes casting checks

This commit is contained in:
Kamron Batman 2018-08-19 01:38:55 +08:00
parent 7ea00fbf4f
commit 03dd5f1926
431 changed files with 5616 additions and 6250 deletions

View file

@ -128,13 +128,13 @@ namespace Server.Gumps
}
set
{
if( m_Type != value )
if ( m_Type != value )
{
m_Type = value;
Gump parent = Parent;
if( parent != null )
if ( parent != null )
{
parent.Invalidate();
}
@ -216,7 +216,7 @@ namespace Server.Gumps
public override string Compile( NetState ns )
{
if( m_LocalizedTooltip > 0 )
if ( m_LocalizedTooltip > 0 )
return String.Format( "{{ buttontileart {0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} }}{{ tooltip {11} }}", m_X, m_Y, m_ID1, m_ID2, (int)m_Type, m_Param, m_ButtonID, m_ItemID, m_Hue, m_Width, m_Height, m_LocalizedTooltip );
else
return String.Format( "{{ buttontileart {0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} }}", m_X, m_Y, m_ID1, m_ID2, (int)m_Type, m_Param, m_ButtonID, m_ItemID, m_Hue, m_Width, m_Height );
@ -241,11 +241,11 @@ namespace Server.Gumps
disp.AppendLayout( m_Width );
disp.AppendLayout( m_Height );
if( m_LocalizedTooltip > 0 )
if ( m_LocalizedTooltip > 0 )
{
disp.AppendLayout( m_LayoutTooltip );
disp.AppendLayout( m_LocalizedTooltip );
}
}
}
}
}