Skip to content

Commit

Permalink
Add missing CLASS_TRIGGER
Browse files Browse the repository at this point in the history
  • Loading branch information
YoYo178 committed Jun 30, 2024
1 parent 70c2a6e commit f4c11e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mp/src/game/server/baseentity.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ enum Class_T
CLASS_TURRET,
CLASS_BACKPACK,
CLASS_INFOSCRIPT,
CLASS_TRIGGER, // see https://github.com/fortressforever-2013/fortressforever-src/issues/34
CLASS_TRIGGERSCRIPT,
CLASS_TRIGGER_CLIP,
CLASS_TEAMSPAWN,
Expand Down
2 changes: 2 additions & 0 deletions mp/src/game/server/triggers.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class CBaseTrigger : public CBaseToggle
void UpdateOnRemove( void );
void TouchTest( void );

virtual Class_T Classify( void ) { return CLASS_TRIGGER; }

// Input handlers
virtual void InputEnable( inputdata_t &inputdata );
virtual void InputDisable( inputdata_t &inputdata );
Expand Down

0 comments on commit f4c11e5

Please sign in to comment.