diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-21 17:52:42 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-21 17:52:42 -0400 |
| commit | 5e6e88f98300d4c3d41aad7cff5346539f4f9f66 (patch) | |
| tree | bc5de00f63a8b1d5226b0c2988fcdaa06f6e2f13 /gamemode/client/qtabs | |
| parent | 978909d830dd173f8b018f36c5f142d225732ba1 (diff) | |
| download | artery-5e6e88f98300d4c3d41aad7cff5346539f4f9f66.tar.gz artery-5e6e88f98300d4c3d41aad7cff5346539f4f9f66.tar.bz2 artery-5e6e88f98300d4c3d41aad7cff5346539f4f9f66.zip | |
Fixed loading bug
Fixed a bug where the equipment inventory would not load correctly.
Diffstat (limited to 'gamemode/client/qtabs')
| -rw-r--r-- | gamemode/client/qtabs/cl_qinventory.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gamemode/client/qtabs/cl_qinventory.lua b/gamemode/client/qtabs/cl_qinventory.lua index 2879ac5..2ae70a2 100644 --- a/gamemode/client/qtabs/cl_qinventory.lua +++ b/gamemode/client/qtabs/cl_qinventory.lua @@ -10,6 +10,7 @@ local q = {} local known_inventories = {} local inventory_frames = {} local invsheet +q.known_inventories = known_inventories local drawfloatinginventory = function(id, inventory) --print("Drawing a floating inventory!") @@ -65,13 +66,9 @@ net.Receive("art_ObserveInventory",function() local datalen = net.ReadUInt(32) local inital_data = net.ReadData(datalen) local ownent = net.ReadEntity() - --print("Owning ent of this inventory is", ownent) assert(known_inventories[id] == nil, "Trying to observe the same inventory twice!",id) - local tinv = inv.CreateInventoryFromData(inv_type,inital_data) - tinv.Owner = ownent + local tinv = inv.CreateInventoryFromData(inv_type,inital_data,ownent) tinv.id = id - --print("Created new inventory:") - --PrintTable(tinv) known_inventories[id] = tinv if id > 10 then drawfloatinginventory(id,tinv) |
