Skip to content

Commit

Permalink
Add vararg support to IVEngineServer2::ServerCommand (alliedmodders#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst authored Oct 21, 2023
1 parent 8e69335 commit 75b0f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/eiface.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ abstract_class IVEngineServer2 : public ISource2Engine
virtual void Message_DetermineMulticastRecipients( bool usepas, const Vector& origin, CPlayerBitVec& playerbits ) = 0;

// Issue a command to the command parser as if it was typed at the server console.
virtual void ServerCommand( const char *str ) = 0;
virtual void ServerCommand( const char *str, ... ) FMTFUNCTION( 2, 3 ) = 0;
// Issue the specified command to the specified client (mimics that client typing the command at the console).
virtual void ClientCommand( CPlayerSlot nSlot, const char *szFmt, ... ) FMTFUNCTION( 3, 4 ) = 0;

Expand Down

0 comments on commit 75b0f41

Please sign in to comment.