Changeset 3212

Show
Ignore:
Timestamp:
01/14/10 21:30:44 (8 weeks ago)
Author:
ghoulsblade
Message:
gPacketSizeOverride6017 was applied before the shard config was loaded
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lua/lib.protocol.lua

    r3195 r3212  
    2020-- check if packets are complete and handle them 
    2121function HandlePackets () 
    22         if (not gPacketInit) then gPacketInit = true InitPackets() end 
    2322        if (not gNoLogPackets_ByPacket) then gNoLogPackets_ByPacket = {} for k,v in pairs(gNoLogPackets) do gNoLogPackets_ByPacket[v] = true end end 
    2423        local input = GetRecvFIFO() 
     24        if ((not gPacketInit) and input:Size() >= 1) then gPacketInit = true InitPackets() end -- don't call before shard config is loaded !!! clientversion! 
    2525         
    2626        gProfiler_Packets:Start(gEnableProfiler_Packets)