playermobile new Account Account is rather useless, scriptcompiler flukes, etc

This commit is contained in:
mark 2007-09-15 21:17:08 +00:00
parent 1c999ade77
commit f6fcf9b60a
3 changed files with 11 additions and 9 deletions

View file

@ -105,13 +105,6 @@ namespace Server.Mobiles
private int m_GuildMessageHue, m_AllianceMessageHue;
[CommandProperty( AccessLevel.Counselor, AccessLevel.Owner )]
public new Account Account
{
get { return base.Account as Account; }
set { base.Account = value; }
}
#region Getters & Setters
public Server.Guilds.RankDefinition GuildRank
{

View file

@ -3479,6 +3479,7 @@ namespace Server
private IAccount m_Account;
[CommandProperty( AccessLevel.Counselor, AccessLevel.Owner )]
public IAccount Account
{
get

View file

@ -405,13 +405,21 @@ namespace Server
foreach( CompilerError e in results.Errors )
{
string file = e.FileName;
// Rediculous. FileName is null if the warning/error is internally generated in csc.
if ( string.IsNullOrEmpty( file ) ) {
Console.WriteLine( "ScriptCompiler: {0}: {1}", e.ErrorNumber, e.ErrorText );
continue;
}
Dictionary<string, List<CompilerError>> table = (e.IsWarning ? warnings : errors);
List<CompilerError> list = null;
table.TryGetValue( e.FileName, out list );
table.TryGetValue( file, out list );
if( list == null )
table[e.FileName] = list = new List<CompilerError>();
table[file] = list = new List<CompilerError>();
list.Add( e );
}