Fix crash while loading server
This commit is contained in:
@@ -28,14 +28,14 @@ namespace Game.BattleFields
|
||||
{
|
||||
public override bool SetupBattlefield()
|
||||
{
|
||||
InitStalker(WGNpcs.Stalker, WGConst.WintergraspStalkerPos);
|
||||
|
||||
m_TypeId = (uint)BattleFieldTypes.WinterGrasp; // See enum BattlefieldTypes
|
||||
m_BattleId = BattlefieldIds.WG;
|
||||
m_ZoneId = WGConst.ZoneId;
|
||||
m_MapId = WGConst.MapId;
|
||||
m_Map = Global.MapMgr.CreateBaseMap(m_MapId);
|
||||
|
||||
InitStalker(WGNpcs.Stalker, WGConst.WintergraspStalkerPos);
|
||||
|
||||
m_MaxPlayer = WorldConfig.GetUIntValue(WorldCfg.WintergraspPlrMax);
|
||||
m_IsEnabled = WorldConfig.GetBoolValue(WorldCfg.WintergraspEnable);
|
||||
m_MinPlayer = WorldConfig.GetUIntValue(WorldCfg.WintergraspPlrMin);
|
||||
|
||||
@@ -3154,7 +3154,7 @@ namespace Game.Entities
|
||||
public UpdateField<bool> BankAutoSortDisabled = new UpdateField<bool>(0, 2);
|
||||
public UpdateField<bool> SortBagsRightToLeft = new UpdateField<bool>(0, 3);
|
||||
public UpdateField<bool> InsertItemsLeftToRight = new UpdateField<bool>(0, 4);
|
||||
public UpdateFieldArray<DynamicUpdateField<Research>> Research = new UpdateFieldArray<DynamicUpdateField<Research>>(1, 22, 23);//-1-1
|
||||
public UpdateFieldArray<DynamicUpdateField<Research>> Research = new UpdateFieldArray<DynamicUpdateField<Research>>(1, 22, 23);
|
||||
public DynamicUpdateField<ulong> KnownTitles = new DynamicUpdateField<ulong>(0, 5);
|
||||
public DynamicUpdateField<ushort> ResearchSites = new DynamicUpdateField<ushort>(0, 6);
|
||||
public DynamicUpdateField<uint> ResearchSiteProgress = new DynamicUpdateField<uint>(0, 7);
|
||||
|
||||
@@ -775,7 +775,6 @@ namespace Game.Networking.Packets
|
||||
public override void Write() { }
|
||||
}
|
||||
|
||||
|
||||
class PhaseShiftChange : ServerPacket
|
||||
{
|
||||
public PhaseShiftChange() : base(ServerOpcodes.PhaseShiftChange) { }
|
||||
@@ -804,9 +803,6 @@ namespace Game.Networking.Packets
|
||||
public List<ushort> VisibleMapIDs = new List<ushort>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public class ZoneUnderAttack : ServerPacket
|
||||
{
|
||||
public ZoneUnderAttack() : base(ServerOpcodes.ZoneUnderAttack, ConnectionType.Instance) { }
|
||||
|
||||
Reference in New Issue
Block a user