XGUI: Process inbound data before progressing onward

(Sanity change, this likely doesn't affect anything)
This commit is contained in:
SticklyMan 2018-02-04 17:09:49 -07:00
parent 70c544f879
commit ac76283a8b
2 changed files with 4 additions and 3 deletions

View File

@ -449,8 +449,8 @@ end
function xgui.getChunk( flag, datatype, data )
if xgui.expectingdata then
--print( datatype, flag ) --Debug
xgui.chunkbox:Progress( datatype )
if flag == -1 then return --Ignore these chunks
if flag == -1 then
--Ignore these chunks
elseif flag == 0 then --Data should be purged
if xgui.data[datatype] then
table.Empty( xgui.data[datatype] )
@ -487,6 +487,7 @@ function xgui.getChunk( flag, datatype, data )
elseif flag == 7 then --Pass the data directly to the module to be handled.
xgui.callUpdate( datatype, "data", data )
end
xgui.chunkbox:Progress( datatype )
end
end

View File

@ -1 +1 @@
1517739626
1517789389