playermobile new Account Account is rather useless, scriptcompiler flukes, etc
This commit is contained in:
parent
1c999ade77
commit
f6fcf9b60a
3 changed files with 11 additions and 9 deletions
|
|
@ -105,13 +105,6 @@ namespace Server.Mobiles
|
||||||
|
|
||||||
private int m_GuildMessageHue, m_AllianceMessageHue;
|
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
|
#region Getters & Setters
|
||||||
public Server.Guilds.RankDefinition GuildRank
|
public Server.Guilds.RankDefinition GuildRank
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3479,6 +3479,7 @@ namespace Server
|
||||||
|
|
||||||
private IAccount m_Account;
|
private IAccount m_Account;
|
||||||
|
|
||||||
|
[CommandProperty( AccessLevel.Counselor, AccessLevel.Owner )]
|
||||||
public IAccount Account
|
public IAccount Account
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
||||||
|
|
@ -405,13 +405,21 @@ namespace Server
|
||||||
|
|
||||||
foreach( CompilerError e in results.Errors )
|
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);
|
Dictionary<string, List<CompilerError>> table = (e.IsWarning ? warnings : errors);
|
||||||
|
|
||||||
List<CompilerError> list = null;
|
List<CompilerError> list = null;
|
||||||
table.TryGetValue( e.FileName, out list );
|
table.TryGetValue( file, out list );
|
||||||
|
|
||||||
if( list == null )
|
if( list == null )
|
||||||
table[e.FileName] = list = new List<CompilerError>();
|
table[file] = list = new List<CompilerError>();
|
||||||
|
|
||||||
list.Add( e );
|
list.Add( e );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue