mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-27 15:25:30 +03:00
Fixed an issue with IsCombatItem() not being overridden in CItem
This commit is contained in:
parent
59825cb6c1
commit
da68635013
@ -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; }
|
||||||
|
Loading…
Reference in New Issue
Block a user