Declared the cvar in netcmd to get rid of warnings

This commit is contained in:
Riku Salminen 2020-11-10 13:53:31 +02:00
parent 8f001b63c2
commit 91a34575a7
4 changed files with 3 additions and 2 deletions

View File

@ -374,6 +374,7 @@ consvar_t cv_sleep = CVAR_INIT ("cpusleep", "1", CV_SAVE, sleeping_cons_t, NULL)
static CV_PossibleValue_t perfstats_cons_t[] = {
{0, "Off"}, {1, "Rendering"}, {2, "Logic"}, {3, "ThinkFrame"}, {0, NULL}};
consvar_t cv_perfstats = CVAR_INIT ("perfstats", "Off", 0, perfstats_cons_t, NULL);
consvar_t cv_freedemocamera = CVAR_INIT("freedemocamera", "Off", CV_SAVE, CV_OnOff, NULL);
char timedemo_name[256];
boolean timedemo_csv;

View File

@ -121,6 +121,8 @@ extern boolean timedemo_csv;
extern char timedemo_csv_id[256];
extern boolean timedemo_quit;
extern consvar_t cv_freedemocamera;
typedef enum
{
XD_NAMEANDCOLOR = 1,

View File

@ -39,7 +39,6 @@ tic_t leveltime;
// The entries will behave like both the head and tail of the lists.
thinker_t thlist[NUM_THINKERLISTS];
consvar_t cv_freedemocamera = {"freedemocamera", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
void Command_Numthinkers_f(void)
{

View File

@ -19,7 +19,6 @@
#endif
extern tic_t leveltime;
extern consvar_t cv_freedemocamera;
// Called by G_Ticker. Carries out all thinking of enemies and players.
void Command_Numthinkers_f(void);