Modernization Fixes & Updates to Default Values (#3)
This commit is contained in:
parent
445eddff68
commit
dcf64091b1
768 changed files with 10507 additions and 14196 deletions
|
|
@ -1,11 +1,12 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server.Engines.PartySystem
|
||||
{
|
||||
public class DeclineTimer : Timer
|
||||
{
|
||||
private static Hashtable m_Table = new Hashtable();
|
||||
private static Dictionary<Mobile, DeclineTimer> m_Table = new Dictionary<Mobile, DeclineTimer>();
|
||||
private Mobile m_Mobile, m_Leader;
|
||||
|
||||
private DeclineTimer(Mobile m, Mobile leader) : base(TimeSpan.FromSeconds(30.0))
|
||||
|
|
@ -16,7 +17,7 @@ namespace Server.Engines.PartySystem
|
|||
|
||||
public static void Start(Mobile m, Mobile leader)
|
||||
{
|
||||
DeclineTimer t = (DeclineTimer)m_Table[m];
|
||||
DeclineTimer t = m_Table[m];
|
||||
|
||||
t?.Stop();
|
||||
|
||||
|
|
@ -32,4 +33,4 @@ namespace Server.Engines.PartySystem
|
|||
PartyCommands.Handler.OnDecline(m_Mobile, m_Leader);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue