}\r
\r
Vore_Disconnect();\r
+ entity e;\r
+ for(e = world; (e = find(e, classname, "consumable")); )\r
+ {\r
+ // remove consumable items when we spectate\r
+ if(e.predator == self)\r
+ Item_Consumable_Remove(e, TRUE);\r
+ }\r
\r
kh_Key_DropAll(self, TRUE);\r
\r
}\r
\r
Vore_Disconnect();\r
+ entity e;\r
+ for(e = world; (e = find(e, classname, "consumable")); )\r
+ {\r
+ // remove consumable items when we disconnect\r
+ if(e.predator == self)\r
+ Item_Consumable_Remove(e, TRUE);\r
+ }\r
\r
CheatShutdownClient();\r
\r
Item_Consumable_Remove(self, TRUE);\r
return;\r
}\r
-\r
- if(self.predator.classname != "player")\r
- {\r
- // no longer a player, remove consumable items\r
- Item_Consumable_Remove(self, TRUE);\r
- return;\r
- }\r
if(self.predator.stat_eaten)\r
{\r
// prey can't hold consumable items\r