mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 21:25:42 +12:00
Fix crashing
This commit is contained in:
parent
18201596c8
commit
e407a706b5
3 changed files with 1523 additions and 1520 deletions
File diff suppressed because it is too large
Load diff
|
@ -41,10 +41,13 @@ namespace HISP.Server
|
|||
|
||||
private void warnTimerTick(object state)
|
||||
{
|
||||
warnTimer.Change(0, 0);
|
||||
Logger.DebugPrint("Sending inactivity warning to: " + RemoteIp);
|
||||
byte[] chatPacket = PacketBuilder.CreateChat(Messages.FormatIdleWarningMessage(), PacketBuilder.CHAT_BOTTOM_RIGHT);
|
||||
SendPacket(chatPacket);
|
||||
|
||||
warnTimer.Dispose();
|
||||
warnTimer = null;
|
||||
|
||||
}
|
||||
|
||||
private void kickTimerTick(object state)
|
||||
|
@ -131,10 +134,10 @@ namespace HISP.Server
|
|||
|
||||
|
||||
if (kickTimer != null && identifier != PacketBuilder.PACKET_KEEP_ALIVE)
|
||||
kickTimer.Change(kickInterval, kickInterval);
|
||||
kickTimer = new Timer(new TimerCallback(kickTimerTick), null, kickInterval, kickInterval);
|
||||
|
||||
if (warnTimer != null && identifier != PacketBuilder.PACKET_KEEP_ALIVE)
|
||||
warnTimer.Change(warnInterval, warnInterval);
|
||||
warnTimer = new Timer(new TimerCallback(warnTimerTick), null, warnInterval, warnInterval);
|
||||
|
||||
if (!LoggedIn) // Must be either login or policy-file-request
|
||||
{
|
||||
|
|
|
@ -200,7 +200,7 @@ namespace HISP.Server
|
|||
item.Effects = effectsList;
|
||||
item.SpawnParamaters = new Item.SpawnRules();
|
||||
item.SpawnParamaters.SpawnCap = gameData.item.item_list[i].spawn_parameters.spawn_cap;
|
||||
item.SpawnParamaters.SpawnInZone = gameData.item.item_list[i].spawn_parameters.spawn_in_area;
|
||||
item.SpawnParamaters.SpawnInZone = gameData.item.item_list[i].spawn_parameters.spawn_in_zone;
|
||||
item.SpawnParamaters.SpawnOnTileType = gameData.item.item_list[i].spawn_parameters.spawn_on_tile_type;
|
||||
item.SpawnParamaters.SpawnOnSpecialTile = gameData.item.item_list[i].spawn_parameters.spawn_on_special_tile;
|
||||
item.SpawnParamaters.SpawnNearSpecialTile = gameData.item.item_list[i].spawn_parameters.spawn_near_special_tile;
|
||||
|
|
Loading…
Add table
Reference in a new issue