NSEntity: add empty DebugDraw method for listen servers.

This commit is contained in:
Marco Cawthorne 2024-03-04 18:44:10 -08:00
parent 0f96e635b0
commit 37ab385bcf
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 9 additions and 2 deletions

View File

@ -120,10 +120,11 @@ public:
virtual void Input(entity,string,string);
virtual void Save(float);
virtual void Restore(string,string);
/** Called when we need to re-align the entity to our parent entity. */
virtual void ParentUpdate(void);
/* Server-side rendering function. Expensive, but useful. */
virtual void DebugDraw(void);
/** Run each tic after physics are run to determine if we need to send updates over the network. */
virtual void EvaluateEntity(void);

View File

@ -189,6 +189,12 @@ void NSEntity::postdraw( void ) {
#else
void
NSEntity::DebugDraw(void)
{
}
/* Make sure StartFrame calls this */
float NSEntity::SendEntity( entity ePEnt, float flChanged ) {
if ( !modelindex )