#W# Fixed serialization but with PlayerConstructed.
This commit is contained in:
parent
1d5ccf99dc
commit
f698d96dbb
4 changed files with 7 additions and 4 deletions
|
|
@ -616,6 +616,9 @@ namespace Server.Items
|
|||
|
||||
if ( GetSaveFlag( flags, SaveFlag.MedAllowance ) )
|
||||
writer.WriteEncodedInt( (int) m_Meditate );
|
||||
|
||||
if ( GetSaveFlag( flags, SaveFlag.PlayerConstructed ) )
|
||||
writer.Write( (bool) m_PlayerConstructed );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
|
|
|
|||
|
|
@ -1450,7 +1450,7 @@ namespace Server.Items
|
|||
}
|
||||
|
||||
if ( GetSaveFlag( flags, SaveFlag.PlayerConstructed ) )
|
||||
m_PlayerConstructed = reader.ReadBool();
|
||||
m_PlayerConstructed = true;
|
||||
|
||||
if( GetSaveFlag( flags, SaveFlag.Slayer2 ) )
|
||||
m_Slayer2 = (SlayerName)reader.ReadInt();
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Server.Misc
|
|||
public class AutoSave : Timer
|
||||
{
|
||||
private static TimeSpan m_Delay = TimeSpan.FromMinutes( Server.Misc.Settings.SaveInterval() );
|
||||
private static TimeSpan m_Warning = TimeSpan.Zero;
|
||||
private static TimeSpan m_Warning = TimeSpan.FromSeconds( 15.0 );
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace Server.Misc
|
|||
public static double SaveInterval()
|
||||
{
|
||||
// How many minutes does your server save its information?
|
||||
return 30.0;
|
||||
return 5.0;
|
||||
}
|
||||
|
||||
public static bool CastSpellsHoldingThings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue