Fixed an issue with IsCombatItem() not being overridden in CItem

This commit is contained in:
Blixibon 2021-09-28 10:59:30 -05:00
parent 59825cb6c1
commit da68635013

View File

@ -89,9 +89,9 @@ public:
#endif #endif
#ifdef MAPBASE #ifdef MAPBASE
// This is in CBaseEntity, but I can't find a use for it anywhere. // This appeared to have no prior use in Source SDK 2013.
// It may have been originally intended for TF2 or some other game-specific item class. Please remove this if it turns out to be something important. // It may have been originally intended for TF2 or some other game-specific item class.
virtual bool IsCombatItem() { return true; } virtual bool IsCombatItem() const { return true; }
// Used to access item_healthkit values, etc. from outside of the class // Used to access item_healthkit values, etc. from outside of the class
virtual float GetItemAmount() { return 1.0f; } virtual float GetItemAmount() { return 1.0f; }