X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fmain.qc;h=7648b129775afa875f38ff5e16de5339c62c3a80;hp=298bcdbefefff66e1b26993c8dd3b23a41f1e842;hb=2f239100c8b77275d69972f91ac4e7ff913f3d7c;hpb=cf4d36d9d295ce940e9e9bdf7a711e4036de0b3c;ds=sidebyside diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 298bcdbefe..7648b12977 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -39,6 +39,8 @@ #include "../common/stats.qh" #include "../common/teams.qh" +#include "../common/items/all.qh" + #include "../common/weapons/all.qh" #include "../csqcmodellib/cl_model.qh" @@ -136,6 +138,7 @@ void CSQC_Init(void) // needs to be done so early because of the constants they create CALL_ACCUMULATED_FUNCTION(RegisterWeapons); CALL_ACCUMULATED_FUNCTION(RegisterMonsters); + CALL_ACCUMULATED_FUNCTION(RegisterItems); CALL_ACCUMULATED_FUNCTION(RegisterGametypes); CALL_ACCUMULATED_FUNCTION(RegisterNotifications); CALL_ACCUMULATED_FUNCTION(RegisterDeathtypes); @@ -856,6 +859,7 @@ void CSQC_Ent_Update(float bIsNewEntity) case ENT_CLIENT_WARPZONE_TELEPORTED: WarpZone_Teleported_Read(bIsNewEntity); break; case ENT_CLIENT_TRIGGER_MUSIC: Ent_ReadTriggerMusic(); break; case ENT_CLIENT_HOOK: Ent_ReadHook(bIsNewEntity, ENT_CLIENT_HOOK); break; + case ENT_CLIENT_INVENTORY: Inventory_Read(self); break; case ENT_CLIENT_ARC_BEAM: Ent_ReadArcBeam(bIsNewEntity); break; case ENT_CLIENT_ACCURACY: Ent_ReadAccuracy(); break; case ENT_CLIENT_AUXILIARYXHAIR: Net_AuXair2(bIsNewEntity); break;