Skip to content

Commit

Permalink
Add ‘cl_numentities’ macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet authored and res2k committed Mar 24, 2024
1 parent 6d59c1a commit 7f08b36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/client/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2268,6 +2268,11 @@ int CL_GetResolutionScale(void)
return cl.refdef.feedback.resolution_scale;
}

static size_t CL_NumEntities_m(char *buffer, size_t size)
{
return Q_scnprintf(buffer, size, "%i", cl.frame.numEntities);
}

/*
===============
CL_WriteConfig
Expand Down Expand Up @@ -2805,6 +2810,7 @@ static void CL_InitLocal(void)
Cmd_AddMacro("cl_viewdir", CL_ViewDir_m);
Cmd_AddMacro("cl_hdr_color", CL_HdrColor_m);
Cmd_AddMacro("cl_resolution_scale", CL_ResolutionScale_m);
Cmd_AddMacro("cl_numentities", CL_NumEntities_m);
}

/*
Expand Down

0 comments on commit 7f08b36

Please sign in to comment.