Buffer allocation optimizations in PacketWriter
Misc string cleanup
This commit is contained in:
parent
b7ea90d3af
commit
3da4aa9efa
5 changed files with 116 additions and 44 deletions
|
|
@ -1055,7 +1055,7 @@ namespace Server.Commands
|
|||
break;
|
||||
}
|
||||
|
||||
if ( line == null || line.Length == 0 )
|
||||
if ( string.IsNullOrEmpty( line ) )
|
||||
return null;
|
||||
|
||||
DecorationList list = new DecorationList();
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ namespace Server.Guilds
|
|||
AddButton( 40, 251, 0x4B9, 0x4BA, 4, GumpButtonType.Reply, 0 ); //Charter Edit button
|
||||
|
||||
s = guild.Website;
|
||||
if( s == null || s == "" )
|
||||
if( string.IsNullOrEmpty( s ) )
|
||||
s = "Guild website not yet set.";
|
||||
AddHtml( 65, 306, 480, 30, s, true, false );
|
||||
if( isLeader )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue