]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/state.qc
Fix inventory system networking so that it stores the inventory state on the client...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / state.qc
index f117340ed948971560eaaffc383c2e7b27d57a92..7a5979e2bc2c0ba261c11281798bf1d2355fdc1a 100644 (file)
@@ -4,6 +4,8 @@
 
 void Inventory_new(PlayerState this);
 void Inventory_delete(entity this);
+void InventoryStorage_attach(PlayerState this);
+void InventoryStorage_detach(PlayerState this);
 
 void PlayerState_attach(entity this)
 {
@@ -53,6 +55,7 @@ void ClientState_attach(entity this)
        entcs_attach(this);
        anticheat_init(this);
        W_HitPlotOpen(this);
+       InventoryStorage_attach(this);
 }
 
 void bot_clientdisconnect(entity this);
@@ -71,6 +74,7 @@ void ClientState_detach(entity this)
     W_HitPlotClose(this);
     ClientData_Detach(this);
     entcs_detach(this);
+    InventoryStorage_detach(this);
        delete(CS(this));
        this._cs = NULL;